上一页 1 ··· 102 103 104 105 106 107 108 109 110 ··· 180 下一页
摘要: import ntplib import os,datetime def ntp_client(): #hosts = ['0.cn.pool.ntp.org','1.cn.pool.ntp.org','2.cn.pool.ntp.org','3.cn.pool.ntp.org'] hosts=[' 阅读全文
posted @ 2022-03-20 09:28 myrj 阅读(296) 评论(0) 推荐(0) 编辑
摘要: import datetime import time def get_float_time_stamp(): datetime_now = datetime.datetime.now() return datetime_now.timestamp() def get_time_stamp16(): 阅读全文
posted @ 2022-03-20 06:04 myrj 阅读(860) 评论(0) 推荐(0) 编辑
摘要: 金山文档,百度搜索,打开网页,微信登录,上传模板文件,任何人都可编辑,分享,复制链接到微信群 阅读全文
posted @ 2022-03-18 16:44 myrj 阅读(306) 评论(0) 推荐(0) 编辑
摘要: >>> a='0000234230000'>>> ac=re.sub('^0+','',a)>>> ac'234230000'>>> ac=re.sub('0+','',a)>>> ac'23423'>>> 搜索 复制 阅读全文
posted @ 2022-03-18 06:43 myrj 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 1.利用QT DESIGNER软件建立自己的UI,保存为aa.ui2.进入c:\python373.pyuic5 -o test.py aa.ui4.形成对应的py PyQt5:获取文本框和line的值不同的方法 得到textEdit的值:self.textEdit_5.toPlainText()得 阅读全文
posted @ 2022-03-16 21:23 myrj 阅读(84) 评论(0) 推荐(0) 编辑
摘要: import wxapp = wx.App() frame = wx.Frame(None,title = "my",size = (500,400))frame.Center() frame.Destroy() wx.Exit() 阅读全文
posted @ 2022-03-14 16:22 myrj 阅读(102) 评论(0) 推荐(0) 编辑
摘要: wxPython程序中使用日期转换函数datetime.datetime.strptime报错 unknown locale: zh-CN 解决方法: import local locale.setlocale(locale.LC_ALL, 'English_United States') 阅读全文
posted @ 2022-03-14 14:23 myrj 阅读(234) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> void fx(int n); main() { int a=155; fx(a); getchar(); } void fx(int n) { while(n) { printf("%d",n%10); n=n/10; } } 阅读全文
posted @ 2022-03-09 09:25 myrj 阅读(554) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <math.h> void fc(float a,float b,float c); void fca(float a,float b,float c); main() { float a,b,c; scanf("%f%f%f",&a,&b,& 阅读全文
posted @ 2022-03-09 09:05 myrj 阅读(491) 评论(0) 推荐(0) 编辑
摘要: import winsound # 导入此模块实现声音播放功能 import time # 导入此模块,获取当前时间 # 提示用户设置时间和分钟 my_hour = input("请输入时:") my_minute = input("请输入分:") flag = 1 while flag: t = 阅读全文
posted @ 2022-03-08 06:58 myrj 阅读(136) 评论(0) 推荐(0) 编辑
上一页 1 ··· 102 103 104 105 106 107 108 109 110 ··· 180 下一页