11 2019 档案

摘要:#coding:utf-8import timeimport datetimewhile True: date_time = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') time.sleep(1) print("\r北京时间:%s" % 阅读全文
posted @ 2019-11-25 15:05 慕飒潇湘 阅读(130) 评论(0) 推荐(0) 编辑
摘要:# coding: utf-8""" 作者:xiaofeng 功能:自动获取阿里云服务器的cpu、内存、磁盘、网络流量等信息,定时生产一个excel文件 版本:v1.1.5 日期:21/11/2019 版本迭代:各模块封装成方法,其中优化cpu计算方法"""import os,timeimport 阅读全文
posted @ 2019-11-22 10:12 慕飒潇湘 阅读(406) 评论(0) 推荐(0) 编辑
摘要:import timefor i in range(121): #120秒倒计时,这里121可以是变量,替换称所需要的数据就可用制作成任意时间的倒计时了,我一般用这个倒计时做自动化运行的一个脚本 seconds = 120 - i time.sleep(1) m, s = divmod(second 阅读全文
posted @ 2019-11-18 00:58 慕飒潇湘 阅读(3148) 评论(0) 推荐(0) 编辑
摘要:for i in range(1,61): sleep(1) last_time = 60 - i print("\r倒计时%s秒开始,请稍等!" % last_time, end="") 阅读全文
posted @ 2019-11-14 18:01 慕飒潇湘 阅读(815) 评论(0) 推荐(0) 编辑
摘要:@echo offping 127.0.0.1 -n 60 >nulstart C:\work\HxTradeClient\Release\HxTradeClient.exestart C:\work\HxTradeClient\Release\HxTradeClient.exestart C:\w 阅读全文
posted @ 2019-11-14 18:00 慕飒潇湘 阅读(424) 评论(0) 推荐(0) 编辑