如何在打印出A或B之后重新从if开始
import timetime.sleep(3)
print('1成……')
time.sleep(2)
order=input('1等待指令:')
while True:
if order=='6':
time.sleep(3)
print('a')
elif order=='x':
print('b')
import time
time.sleep(3)
print('1成……')
time.sleep(2)
while True:
order=input('1等待指令:')
if order=='6':
time.sleep(3)
print('a')
elif order=='x':
print('b')
对,order一直没变,只能打印一个
页:
[1]