摘要:
f = open('歌词.txt',mode='r',encoding='utf-8') fText = f.read() f.close() print(fText) If I got down on my knees And I pleaded with you If I cross a million oceans Just to be with you Would you e... 阅读全文
摘要:
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(5,'A','B','C') 1 A->C 2 A->B 1 C->B 3 A->C 1 ... 阅读全文