随笔分类 -  Python question

摘要:list1 = [11, [22, 3], [4, ], [55, 66], 8, [9, [7, [12, [34, [26]]]]]] # 去除多余嵌套的列表,得到[11, 22, 3, 4, 55, 66, 8] # 小剥皮 # [11, [22, 3]] # [11, [22, [3, 4] 阅读全文
posted @ 2021-03-30 20:33 xyfun72 阅读(119) 评论(0) 推荐(0)
摘要:https://github.com/kenwoodjw/python_interview_question 从今天开始,每天做几道python面试题和数据结构的题,并做以笔记 文件操作 1. 有一个jsonline格式的文件file.txt大小约为10K 现在要处理一个大小为10G的文件,但是内存 阅读全文
posted @ 2019-03-13 13:25 xyfun72 阅读(684) 评论(0) 推荐(0)