2022年8月9日

Python 遍历列表、切片、元组 4

摘要: 1.for循环列表 cars=['bmv','audi','toyota','subaru'] for c in cars: print(c) print(c) 需求注意的是:for循环一定要加冒号(:), 再是print必须缩进。 2.创建数值列表 #通过函数range(1,5) 生成一系列数,生 阅读全文

posted @ 2022-08-09 14:44 花阴偷移 阅读(112) 评论(0) 推荐(0) 编辑

导航