【问题标题】:Python Console GUI Updating whilst getting keyboard inputPython 控制台 GUI 更新同时获取键盘输入
【发布时间】:2016-08-09 15:36:34
【问题描述】:

我想知道是否有可能有一个命令行界面,它实质上每秒都会闪烁当前系统时间,但允许用户通过 raw_input 或其他方式继续输入数据?

谢谢,

瑞恩

【问题讨论】:

  • “闪烁当前系统”是什么意思?

标签: python python-2.7 date input


【解决方案1】:

不,反正不是在同一时间。这是在终端中显示时间的示例。

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

【讨论】:

  • 谢谢 - 我认为我做不到
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-11-23
  • 2015-06-07
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多