10 2018 档案
10.15作业
摘要:fo = open("1.txt", "r", encoding='utf-8')read = fo.read()fo.close()read = read.strip().lower()for i in '''.,?;:''': read = read.replace(i, ' ')readLis 阅读全文
posted @ 2018-10-15 11:45 詫秺 阅读(112) 评论(0) 推荐(0)
10.8作业
摘要:a = list('nihao') # 列表的遍历 print(a) for i in a: print(i) b = tuple('12323') # 元组的遍历 print(b) for i in b: print(i) c = set('kjkjhg') # 集合的遍历 print(c) fo 阅读全文
posted @ 2018-10-09 02:53 詫秺 阅读(128) 评论(0) 推荐(0)