while True :
Vehicle_Number_PLate = ('Please enter the vehicles number plate: ')
If len(Vehicle_Number_Plate)>7:
print ('The number plate is invalid, please try again')
Vehicle_Number_plate = FALSE
If len(Vehicle_Number_Plate)<7:
print ('The number plate is invalid, please try again')
请你能帮助我,我真的卡住了,我需要帮助。非常感谢我不能得到len命令工作
'如果'是'if',''while'需要一个缩进。 –
使用输入('请输入车号牌') – tinySandy
另外,'print'是一个很好的调试工具。尝试'print(Vehicle_Number_Plate)',你会看到问题。 – tdelaney