摘要:
1、循环的语法与基本使用 '''print(1)while 条件: 代码1 代码2 代码3print(3)''' count=0while count < 5: # 5 < 5 print(count) # 0,1,2,3,4 count+=1 # 5print('顶级代码 >') 2、死循环与效 阅读全文
posted @ 2020-03-09 20:35
Dimple_Y
阅读(255)
评论(0)
推荐(0)
摘要:
深浅copy 1、二者分隔不开,list改list2也跟着该,因为指向的就是同一个地址 list2=list1 # 这不叫copylist1[0]='EGON'print(list2) 2、需求: 1、拷贝一下原列表产生一个新的列表 2、想让两个列表完全独立开,并且针对的是改操作的独立而不是读操作 阅读全文
posted @ 2020-03-09 20:34
Dimple_Y
阅读(134)
评论(0)
推荐(0)
摘要:
# 作业(必做题):# 1. 使用while循环输出1 2 3 4 5 6 8 9 10count = 1while count < 7: print(count) count = count + 1count = count + 1while count < 11: print(count) co 阅读全文
posted @ 2020-03-09 20:17
Dimple_Y
阅读(349)
评论(0)
推荐(0)

浙公网安备 33010602011771号