- 博客(3)
- 收藏
- 关注
原创 python学习笔记3
学习时间:20200205资源链接:bilibili视频链接列表方括号表示2维列表即矩阵列表相关函数的链接元组元组与列表也有点相似,不同的是我们不能添加新项目,不能删除现有的项目,元组是不能改变的,元组用括号表示。coordinates = (1,2,3)x = coordiates[0]y = coordinates[1]z = coordinates[2]#等价于x...
2020-02-05 20:02:38
64
原创 python学习笔记2
布尔量is_hot = False #布尔量is_cold = True #布尔量if is_hot: #is_hot为真时条件成立 print("it's a hot day") print("drink plent of water")elif is_cold: print("it's a cold day") print("wear warm...
2020-02-04 19:35:45
93
原创 python学习笔记1
print()函数print("John Smith")运行结果如下:John Smith程序是怎么运行的呢?接下来我用另一个简单的画狗小程序来说明一下。print(' o---- ')print(' |||| ')print('*' *8)运行结果如下: o---- |||| ********当我们点击运行时,程序是逐行执行的,从上到下。知道了如何向终端输出,接下...
2020-02-03 20:39:07
123
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人