摘要:
print(sum(range(1,101))) 阅读全文
posted @ 2023-11-29 16:59
琳达的博客
阅读(24)
评论(0)
推荐(0)
摘要:
total=0for a in range(1,5): for b in range(1,5): for c in range(1,5): if a!=b and a!=c and b!=c: total = total + 1 print(a, b, c)print(total) 阅读全文
posted @ 2023-11-29 16:43
琳达的博客
阅读(156)
评论(0)
推荐(0)
摘要:
list1=[11,22,33,11]list2=[11,22,89,45]A=set(list1) #先去重B=set(list2)print(A & B) #相同的元素print(A ^ B) #不同的元素 阅读全文
posted @ 2023-11-29 16:36
琳达的博客
阅读(59)
评论(0)
推荐(0)
浙公网安备 33010602011771号