2020年2月2日

python常用技巧

摘要: 1、 list深度拷贝 l1 = [1,2,3] l2 = list(l1) l1 == l2 #True l1 is l2 #False 2、input()采集一个字符串 ‘1 4 2 3’,将其转化为list #方法一 k4=[int(x) for x in input().split()] # 阅读全文

posted @ 2020-02-02 21:19 耀扬 阅读(184) 评论(0) 推荐(0) 编辑

导航