摘要: 一、while循环语法: 1.基本用法示例 x = 1 while x <= 5: print(x) x += 1 2.死循环:永远不结束的循环 如:while True: #永远为真的情况为死循环 print(1) 如:while True: print(1) 如:while True: # IO 阅读全文
posted @ 2021-07-31 11:09 迷恋~以成伤 阅读(120) 评论(0) 推荐(0)