Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在获取键盘输入的同时更新Python控制台GUI_Python_Python 2.7_Date_Input - Fatal编程技术网

在获取键盘输入的同时更新Python控制台GUI

在获取键盘输入的同时更新Python控制台GUI,python,python-2.7,date,input,Python,Python 2.7,Date,Input,我想知道是否有可能有一个命令行界面,本质上是每秒闪烁当前系统时间,但允许用户通过原始输入或其他方式继续输入数据 谢谢 Ryan不,反正不是在同一时间。下面是一个显示终端中时间的示例 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 不,反正不是在同一时间。下面是

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

谢谢


Ryan

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

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

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

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

“闪烁当前系统”是什么意思?闪烁当前系统是什么意思?谢谢-我不认为我可以谢谢-我不认为我可以