小编Laz*_*pek的帖子

Python:我陷入了无限循环

问题陈述如下:

Example output:

Calculator
Give the first number: 100
Give the second number: 25
(1) +
(2) -
(3) *
(4) /
(5)Change numbers
(6)Quit
Current numbers: 100 25
Please select something (1-6): 5
Give the first number: 10
Give the second number: 30
(1) +
(2) -
(3) *
(4) /
(5)Change numbers
(6)Quit
Current numbers: 10 30
Please select something (1-6): 1
The result is: 40
(1) +
(2) -
(3) *
(4) /
(5)Change numbers
(6)Quit
Current …
Run Code Online (Sandbox Code Playgroud)

python infinite-loop while-loop

2
推荐指数
1
解决办法
116
查看次数

标签 统计

infinite-loop ×1

python ×1

while-loop ×1