用户:钻石ew666/沙盒/Pycmd:修订间差异

添加1,054字节 、​ 2020年7月15日 (星期三)
无编辑摘要
 
(未显示同一用户的2个中间版本)
#-*- coding:utf-8 -*-
#导出模块
import sys, os, webbrowser, codecs, time, datetime
from ctypes import *
version_number = "1.1.2"
#定义一堆函数
def cls():
print("已打开可执行文件", flie)
os.system(flie)
 
def printdate():
cur=datetime.datetime.now()
cur.hour
cur.minute
cur.year
cur.day
cur.month
i = datetime.datetime.now()
print ("当前的日期和时间是 %s" % i)
print ("ISO格式的日期和时间是 %s" % i.isoformat() )
print ("当前的年份是 %s" %i.year)
print ("当前的月份是 %s" %i.month)
print ("当前的日期是 %s" %i.day)
print ("dd/mm/yyyy 格式是 %s/%s/%s" % (i.day, i.month, i.year) )
print ("当前小时是 %s" %i.hour)
print ("当前分钟是 %s" %i.minute)
print ("当前秒是 %s" %i.second)
 
def shlmsg():
os.system("explorer")
print("已打开 文件资源管理器")
elif choose == "date":
printdate()
elif choose == "":
continue
 
==更新和优化==
 
这个项目已经咕了...(个毛线)。
 
===更新记录===
 
*V1.2, 增加了查看时间的命令"date"。
 
===bug清单===
 
这个项目已经咕了...
*pyc_1:有几率在启动时不显示任何文字,需重启控制台。
*pyc_2:有几率不显示光标<s>强迫症杀手</s>。
*pyc_3:当输入的可执行文件名无意义时,仍会显示“已打开可执行文件 xxx”。
**已知是python特性。
*pyc_4:当打开cmd或powershell时,会在关闭后才显示“已打开cmd/powershell”。
**现已修复。
 
==须知==
121

个编辑