我似乎得到了这个奇怪的错误Errno 22] Invalid argument: 'character.txt'
。我该如何解决这个问题?
#!/usr/bin/python
#coding:utf-8
import re
import os.path
def gci(rootdir):
for parent,dirnames,filenames in os.walk(rootdir):
for filename in filenames:
text=os.path.join(parent,filename)
split_to_character(text)