我需要“命令”循环并能够在程序中随时使用我怎样才能让我的程序在命令后循环,并让每个命令在线之前的命令行之前运行
print('Type command or view login history.')
command = input()
if command == "loginhistory":
print('flynn 12:42 1/27/87')
command = input()
if command == "login":
print('Please type in your password, Flynn')
您好,欢迎光临。这个网站上有几个非常密切相关的问题。请看看周围。谢谢。 – bernie 2013-03-04 22:15:13