无限循环与菜单 ← 返回 Python while 循环进阶 50.3 无限循环与菜单while True 配合 break 实现菜单系统。 简易菜单 📋 复制代码 while True: choice = input('1.继续 2.退出: ') if choice == '2': print('再见') break print('继续运行...')