本文整理汇总了Python中Time.getTime方法的典型用法代码示例。如果您正苦于以下问题:Python Time.getTime方法的具体用法?Python Time.getTime怎么用?Python Time.getTime使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Time
的用法示例。
在下文中一共展示了Time.getTime方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: raw_input
# 需要导入模块: import Time [as 别名]
# 或者: from Time import getTime [as 别名]
while True:
cli = raw_input("%[email protected]%s : " % (userName, platform))
args = cli.split()
arg_length = len(args)
if len(args[0]) > 0:
History.append(args[0])
if args[0] == "exit":
temp = ["arg_parser.pyc" ,"Time.pyc","gui.pyc" ,"pycont.pyc"]
for f in temp:
try:os.remove(f)
except:pass
exit()
elif args[0] == 'rename':
userName = get_name(True)
elif args[0] == "date":
Time.getTime(True)
elif args[0] == "gui":
import gui
gui.parent(userName)
elif args[0] in ('clear','cls'):
if platform == "Windows":
os.system('cls')
elif platform in ["Android","Linux"]:
os.system('clear')
elif iscygwin:
#cygwin has no clear command so i used this bash to do it
bash = "printf \"\\033c\""
p = subprocess.Popen(bash , shell=True)
elif args[0] == "about":
print AppVersion
elif args[0] == 'history':
示例2: helloCallBack
# 需要导入模块: import Time [as 别名]
# 或者: from Time import getTime [as 别名]
def helloCallBack():
tkMessageBox.showinfo("time", Time.getTime(False))