Python——while循環

1.while循環不斷地運行,直到指定的條件不知足爲止。python ①a = 1事件    while a <= 5:ip         a += 1for循環 ②while unconfirmed_users[]:循環     #只要列表不爲空,就會一直執行遍歷 2.使用標誌while active = Trueco while active:字典     do 事件 3.使用break退出
相關文章
相關標籤/搜索