上一页 1 ··· 108 109 110 111 112 113 114 115 116 ··· 186 下一页
摘要: >>> a='0000234230000'>>> ac=re.sub('^0+','',a)>>> ac'234230000'>>> ac=re.sub('0+','',a)>>> ac'23423'>>> 搜索 复制 阅读全文
posted @ 2022-03-18 06:43 myrj 阅读(79) 评论(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 阅读(93) 评论(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 阅读(110) 评论(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 阅读(274) 评论(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 阅读(634) 评论(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 阅读(634) 评论(0) 推荐(0)
摘要: import winsound # 导入此模块实现声音播放功能 import time # 导入此模块,获取当前时间 # 提示用户设置时间和分钟 my_hour = input("请输入时:") my_minute = input("请输入分:") flag = 1 while flag: t = 阅读全文
posted @ 2022-03-08 06:58 myrj 阅读(161) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-03-05 14:32 myrj 阅读(50) 评论(0) 推荐(0)
摘要: A层次模型的数据结构满足以下两个条件的基本层次联系的集合为层次模型1、有且只有一个结点没有双亲结点,这个结点称为根节点;2、根以外的其他结点有且只有一个双亲结点。层次数据库系统只能处理一对多的实体联系的原因:在层次模型中,每个结点表示一个记录类 型,记录类型之间的联系用结点之间的连线(有向边)表示, 阅读全文
posted @ 2022-03-05 09:11 myrj 阅读(562) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <math.h> #include <time.h> double start,finish; int pdzs(int n); main() { int a,b; for(a=1;a<=10000;a++) if(pdzs(a)) { pri 阅读全文
posted @ 2022-03-03 10:24 myrj 阅读(123) 评论(0) 推荐(0)
上一页 1 ··· 108 109 110 111 112 113 114 115 116 ··· 186 下一页