06 2018 档案

摘要:#1 small = open('The Young Salesman.txt',mode='r',encoding='utf-8') smallText = small.read() small.close() print(smallText) #2 replaceList =['?','!',' 阅读全文
posted @ 2018-06-20 21:31 BiuBiu怪 阅读(86) 评论(0) 推荐(0) 编辑
摘要:def hanoi(n,a,b,c): if n==1: print(n,a+'->'+c) else: hanoi(n-1,a,c,b) print(n,a+'->'+c) hanoi(n-1,b,a,c) hanoi(8,'A','B','C') 阅读全文
posted @ 2018-06-13 20:51 BiuBiu怪 阅读(77) 评论(0) 推荐(0) 编辑