Python:while-else(用处不大)
摘要:num = 1 while num < 10: print(f'数字为{num},小于10') num += 1 else: print(f'数字为{num},数字等于10')# 当while条件成立时,运行while语句下内容,否则运行else语句下内容
阅读全文
posted @ 2021-09-28 17:07
posted @ 2021-09-28 17:07