用PYTHON直接生成一段代码:实现UI界面
时间: 2023-03-14 10:00:05 浏览: 94
使用Python进行GUI编程
5星 · 资源好评率100%
print("Welcome to the UI program")
while True:
print("Please choose an option: \n 1. Print message \n 2. Quit")
choice = input("Enter your choice: ") if choice == '1':
message = input("Enter your message: ")
print("Your message is: " + message)
elif choice == '2':
break
else:
print("Invalid choice!") print("Thank you for using the program!")
阅读全文