摘要:
#在python中一个汉字算一个字符,一个英文字母算一个字符 #用 ord() 函数判断单个字符的unicode编码是否大于255即可。 def is_contain_chinese(check_str): #check_str是一个unicode编码的字符。例如 #check_str=u'fff好 阅读全文
posted @ 2019-05-07 15:06
努力奋斗小青年
阅读(2260)
评论(0)
推荐(0)
摘要:
# -*- coding:utf-8 -*- import os if __name__ == "__main__": rootdir = '.\data' list = os.listdir(rootdir) # 列出文件夹下所有的目录与文件 for i in range(0, len(list) 阅读全文
posted @ 2019-05-07 11:50
努力奋斗小青年
阅读(42259)
评论(1)
推荐(0)

浙公网安备 33010602011771号