随笔分类 -  Python

摘要:python 执行的时候,报错IOError 阅读全文
posted @ 2022-03-28 13:28 CHAO远 阅读(641) 评论(0) 推荐(0)
摘要:1.对于列表,既要遍历索引又要遍历元素时 list1 = ['this','is','a','test'] for index, item in enumerate(list1): print(index, item) 运行结果: 0 this 1 is 2 a 3 test 2.enumerate 阅读全文
posted @ 2021-10-30 20:06 CHAO远 阅读(301) 评论(0) 推荐(0)