摘要:
#1 seeFile = open('see.txt', mode='r',encoding='utf-8') seeText = seeFile.read() #从文件里读出全部文本 字符串 seeFile.close() print(seeText) #2 replaceList = [',','.',"'",'/n'] for c in replaceList: seeTex... 阅读全文
posted @ 2018-06-13 21:01
木木dududu
阅读(231)
评论(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(10,'A','B','c') 阅读全文
posted @ 2018-06-13 20:59
木木dududu
阅读(140)
评论(0)
推荐(0)

浙公网安备 33010602011771号