06 2018 档案

摘要:#1. aaaFile = open('aaa.txt',mode="r",encoding='utf-8') aaaText = aaaFile.read() aaaFile.close() print(aaaText) #2. replaceList = [',','.',"'",'\n'] for c in replaceList: aaaText = aaaText.re... 阅读全文
posted @ 2018-06-20 20:36 梁伟进 阅读(168) 评论(0) 推荐(0)
摘要:l = ['Michael','Bob','Tracy'] l.append('Bob') l.pop() print(1) t = ('Michael','Bob','Tracy') scores = [85,65,55] d = {'Michael':85,'Bob':65,'Tracy':55} d['Bob'] = 82 d['Rose'] = 88 d.pop('Bob') p. 阅读全文
posted @ 2018-06-06 21:21 梁伟进 阅读(174) 评论(0) 推荐(0)