摘要: file_object = open('thefile.txt')try: all_the_text = file_object.read().decode("gb2312")finally: file_object.close()return all_the_text 注:file_object. 阅读全文
posted @ 2017-03-09 13:06 海乐学习 阅读(511) 评论(0) 推荐(0) 编辑
摘要: file_object = open('thefile.txt') try: all_the_text = file_object.read() finally: file_object.close() return all_the_text 注:file_object.read().decode( 阅读全文
posted @ 2017-03-09 12:48 海乐学习 阅读(291) 评论(0) 推荐(0) 编辑
摘要: strRecordFile="d:\RecordFile\2017\03\09\00020170309113442.wav"; 完整文件名: string strFilePaht=strRecordFile.Substring(strRecordFile.LastIndexOf("\\") + 1, 阅读全文
posted @ 2017-03-09 12:14 海乐学习 阅读(2239) 评论(0) 推荐(1) 编辑