摘要: 由于研究生课程期末考试,加上家里的事,中断了好多天.要抓紧补上. # -*- coding:utf-8 -*- #__author__: zoe#date: 2020/5/11import base64base64.encode(f.img,o.img) #将f.img用base64编码输出到o.i 阅读全文
posted @ 2020-05-11 15:33 十名知花香 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 汉诺塔:def hano(n,x,y,z): if n == 1: print('%s >%s' %(x,z)) else: hano(n-1,x,z,y) #把第n-1个盘子从x移到y print('%s >%s' %(x,z)) #把n个盘子从x移到z hano(n-1,y,x,z) #把n-1 阅读全文
posted @ 2020-05-11 15:15 十名知花香 阅读(140) 评论(0) 推荐(0) 编辑