多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
``` list1=[1,2,3] list2 = list1.copy() print(list1) list3=list1 list3.append('4') list1.append('1') list2.append('6') print(list1) print(list2) print(list3) ``` ``` def judge(n): m =set(n) if len(m) != len(n): return True else: return False line = input("请输入一串列表值:") print(judge(line)) ``` ``` import random str1 = 'abcd' list1=[1,2,3,[1,2,3,[1,2,3,{'a':4}]]] a = '' str2 = str1 str3 = str1 str3 = str3+'4' list3=list1 list3.append('4') list1.append('1') list2 = list1.copy() if list1: a = random.shuffle(list2) str2 = str2[::-1] else: a ='不能为空' print(a) #print(s) print(str1) print(str2) print(str3) print(list1) print(list2) print(list3) ```