Python
阿瓜瓜瓜
这个作者很懒,什么都没留下…
展开
-
join方法
a = ['12233','yhyhyhy']b = ['_'.join(x) for x in a]print(b)['1_2_2_3_3', 'y_h_y_h_y_h_y']a = [['12233'],['yhyhyhy']]b = ['_'.join(x) for x in a]print(b)['12233', 'yhyhyhy']a = [['12233','yhyhyhy']]b = ['_'.join(x) for x in a]print(b)['12233.原创 2020-06-28 10:59:32 · 215 阅读 · 0 评论 -
sort VS sorted
Python之sort VS sorted转载 2019-10-17 19:34:45 · 147 阅读 · 0 评论 -
os.listdir() 方法和os.path.join() 函数
os.listdir() 方法和os.path.join() 函数转载 2019-10-17 19:23:12 · 440 阅读 · 0 评论