摘要:
关于tkinter的组件介绍,这篇博客很详细: https://www.cnblogs.com/aland-1415/p/6849193.html tkinter is to make interface. 以下内容来自于https://blog.csdn.net/bemorequiet/artic 阅读全文
摘要:
现在有个二维数组:data=[0,1,2,3],[0,1,2,3],[0,1,2,3],[0,1,2,3],每一行都是[0,1,2,3],要求顺时针旋转90度,变成每一列都是[0,1,2,3]。 #首先生成一维数组的语句是: row=[i for i in range(6)] print(row) 阅读全文
摘要:
用for循环实现阶乘: 1 def factorial(n): 2 result = 1 3 for i in range(2, n+1): 4 result *= i 5 return result 6 print(factorial(5)) 用递归实现阶乘: 1 def factorial(n) 阅读全文
摘要:
Vice chancellor, faculty members and dear students, It is my great pleasure and privilege to visit Cambridge at the invitation of vice-chancellor and 阅读全文