摘要:
'''1 while循环的基本语法while 条件: 子代码1 子代码2 子代码3count=0while count < 5: # 5 < 5 print(count) count+=1 # count=5print(' end ')2、死循环:循环永远不终止,称之为死循环count=0while 阅读全文
摘要:
赋值运算符补充'''增量赋值x=10x+=1''''''交叉赋值a = 10b = 20print(a,b)temp=b # temp=20b=a # b = 10a=temppython一行代码搞定a, b = b, aprint(a,b)''''''链式赋值a=7b=ac=bd=ca = b = 阅读全文