别忘了查看文末送书送书哦!...writer.writerows(data) # 多行写入
数制转换
>>> int('1000', 2)
8
>>> int('A', 16)
10
格式化 json
echo'{"k": "v"}' | python-m..., 4, 5, 6]
>>> c = [5, 6, 7, 8, 9]
>>> list(set().union(a, b, c))
[1, 2, 3, 4, 5, 6, 7, 8, 9]
出现次数最多的...https://www.zhihu.com/question/27376156
stackoverflow.com/questions/101268/hidden-features-of-python