会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
myrj
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
108
109
110
111
112
113
114
115
116
···
186
下一页
2022年3月18日
python替换开头的连续字符 替换连续的几个字符
摘要: >>> 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)
2022年3月16日
python ui文件快速形成.py
摘要: 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)
2022年3月14日
python 彻底关闭wxpython
摘要: 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)
unknown locale: zh-CN python strtime
摘要: 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)
2022年3月9日
C语言:实现一个整数反向输出
摘要: #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)
C语言:求解一元二次方程
摘要: #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
阅读(635)
评论(0)
推荐(0)
2022年3月8日
python 闹钟程序
摘要: 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)
2022年3月5日
车行让道规则 及 责任
摘要:
阅读全文
posted @ 2022-03-05 14:32 myrj
阅读(50)
评论(0)
推荐(0)
数据库模型
摘要: A层次模型的数据结构满足以下两个条件的基本层次联系的集合为层次模型1、有且只有一个结点没有双亲结点,这个结点称为根节点;2、根以外的其他结点有且只有一个双亲结点。层次数据库系统只能处理一对多的实体联系的原因:在层次模型中,每个结点表示一个记录类 型,记录类型之间的联系用结点之间的连线(有向边)表示,
阅读全文
posted @ 2022-03-05 09:11 myrj
阅读(563)
评论(0)
推荐(0)
2022年3月3日
C语言:函数执行时间统计,提高执行效率
摘要: #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
下一页
公告