2024-09-29 01:36:00 发布
网友
我有一个用户输入,如果是AP(学徒)或FQ(完全合格),它要求用户输入
I want to try to repeat that part of code, if any other data is entered.
The part of code with 'user' is the my problem
您可能希望将input包含到while-循环中:
input
while
while True: user = input("Type AP or FQ") if user in ('AP', 'FQ'): break print("Please enter AP or FQ")
您可能希望将
input
包含到while
-循环中:相关问题 更多 >
编程相关推荐