摘要: 1. 读取文件 fin = open("D:\\tools\\log\\words.txt") for fi in fin: print(fi.strip()) #去掉空格 2. 字符串处理 testStr = "asdfjlsj" print(testStr[2:4]) #字符串截取 print( 阅读全文
posted @ 2019-12-20 17:21 林** 阅读(192) 评论(0) 推荐(0) 编辑