Python String title() Python字符串title() Python String title() function returns a title cased version of the string. The first character of the words are in Uppercase and all the remaining characters are in Lowercase. Python字符串titleÿ
復制代碼 代碼如下:
import os
import codecs
filenames=os.listdir(os.getcwd())
python處理excel數據、out=file("name.txt","w")
for filename in filenames:
out.write(filename.decode("gb2312").encode("utf-8"))
out.close()