06 2018 档案
摘要:#1 small = open('The Young Salesman.txt',mode='r',encoding='utf-8') smallText = small.read() small.close() print(smallText) #2 replaceList =['?','!','
阅读全文
摘要: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')
阅读全文