Python 学习记录
矩阵操作
- 生成矩阵
field = [[0 for j in range(3)] for i in range(4)]
field = [[0 for j in range(4)] for i in range(3)]
其他
- 随机在某范围内选一个数
from random import choice
field1,field2= choice(range(2)), choice(range(3,5))
2024-01-15 14:36:52
field = [[0 for j in range(3)] for i in range(4)]
field = [[0 for j in range(4)] for i in range(3)]
from random import choice
field1,field2= choice(range(2)), choice(range(3,5))
下一篇:数据库迁移工具(一)