列表生成式
摘要:1 # res=[] 2 # for i in range(1,34): 3 # res.append(str(i).zfill(2)) 4 # print(res) 5 6 res=[str(i).zfill(2) for i in range(1,34)] 7 print(res) 8 9 l
阅读全文
posted @ 2018-10-02 10:18
posted @ 2018-10-02 10:18
posted @ 2018-09-14 07:08
posted @ 2018-08-30 20:47