【发布时间】:2016-08-09 15:36:34
【问题描述】:
我想知道是否有可能有一个命令行界面,它实质上每秒都会闪烁当前系统时间,但允许用户通过 raw_input 或其他方式继续输入数据?
谢谢,
瑞恩
【问题讨论】:
-
“闪烁当前系统”是什么意思?
标签: python python-2.7 date input
我想知道是否有可能有一个命令行界面,它实质上每秒都会闪烁当前系统时间,但允许用户通过 raw_input 或其他方式继续输入数据?
谢谢,
瑞恩
【问题讨论】:
标签: python python-2.7 date input
不,反正不是在同一时间。这是在终端中显示时间的示例。
import time
while True:
#time.sleep(1) #Uncommet to have it only print the time every second
x = time.strftime("%H:%M:%S")
print x
【讨论】: