摘要:
'''1. 使用while循环输出1 2 3 4 5 6 8 9 10count=1while count < 11: if count == 7: count += 1 continue print(count) count +=1''''''#2. 求1-100的所有数的和count=1sum= 阅读全文
posted @ 2020-03-09 16:34
OBOS
阅读(216)
评论(0)
推荐(0)
摘要:
'''list1=['egon','lxx',[1,2]]1、二者分隔不开,list改list2也跟着该,因为指向的就是同一个地址list2=list1 # 这不叫copylist1[0]='EGON'print(list2)2、需求:1、拷贝一下原列表产生一个新的列表2、想让两个列表完全独立开,并 阅读全文
posted @ 2020-03-09 16:33
OBOS
阅读(193)
评论(0)
推荐(0)

浙公网安备 33010602011771号