- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 经典24点游戏,python
经典24点游戏,在thonny算法如下:from itertools import permutationsa = int(input(“请输入第1个数字:”))b = int(input(“请输入第2个数字:”))c = int(input(“请输入第3个数字:”))d = int(input(“请输入第4个数字:”))print(“本代码仅为学习之用,勿做其他商业用途,”)my_list = [a, b, c, d]对4个整数随机排列的列表result = [c for c in pe
2021-03-11 14:10:01
109
原创 九九乘法表 Python
n=eval(input(“请输入整数n:”)) for i in range(1,n+1): for j in range(1,1+i): if i>=j: print(i,”x”,j,”=”,i*j,end=”;”) print(“\r\n”,end=”“) 请输入整数n:9 1 x 1 = 1; 2 x 1 = 2...
2018-07-27 12:13:13
292
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人