10 2020 档案
摘要:水题 主要是发现poj一堆练这个的 不明所以 所以练练 http://poj.org/problem?id=3320 思路很简单 找到包含所有id的一个区间 对那个区间进行缩小 注意要count最少的出连续的个数 1 #include<iostream> 2 #include<cstdio> 3 #
阅读全文
摘要:md xxx attrib +h +s +a xxx
阅读全文
摘要:del 文件名.后缀名 del *.txt 删除所有txt del *.* del *.* /s /q
阅读全文
摘要:rd /s /qrd 可以删除空目录 rd /s /q可以删除非空目录
阅读全文
摘要:type goth.txt |more 按空格翻页
阅读全文
摘要:想要学好高数 对于任意学科 笔者认为都要有完整的思维框架 能够将整个学科的知识融会贯通 要用图形化以及思维导图还有各种记忆方式去熟透摸透 要做聪明人 不要对这些伟大的学科死记硬背 要用脑子去规划 要 用聪明的头脑去区分普通人与自身 自己总结了高数的整体构架 高数一共可以分为8个模块 这其中 并不是说
阅读全文
摘要:因为之前刷 张天德出版的的全国大学生数学竞赛题目刷到过有用离散柯西不等式解决问题的题目(不是打广告) 它的形式是这样的: 个人感觉 这个式子非常微妙 因为 还记得概率论的期望么? 别忘了 数学期望本质就是积分算出来的 还记得线性空间中的内积空间(三条性质:对称性,线性,正定性)么,这只不过是内积空间
阅读全文
摘要:我经常py代码出错 控制台只提示这个 Process finished with exit code -1073740791 (0xC0000409) 但是根本没有报错原因 首先我们应该改一下pycharm设置 勾选这个 下次跑代码就会有错误原因了 这次查它报错 果不其然 这个控件名要有下划线的 然
阅读全文
摘要:首先 我的问题是 自定义的方法中 无法给窗体中增加控件 我们直接看例子 这是一个图书管理系统的窗口 我们给他加上菜单(menuBar) 加上工具栏(QAction) 程序变成了这样 这个界面是这样的(我不习惯把图片放在项目源码的目录里 看我导入的目录 是../image我存在了上一级的单独的一个im
阅读全文
摘要:写的很好 import pymysql conn = pymysql.connect(host = '127.0.0.1',port = 3306,user = 'root',passwd = '123',db = 'sqlexample') #创建连接(连接数据库) cursor = conn.c
阅读全文
摘要:https://www.cnblogs.com/yangming1996/p/10416499.html https://blog.csdn.net/a88055517/article/details/6736284
阅读全文
摘要:https://blog.csdn.net/pcent/article/details/78643611
阅读全文
摘要:https://blog.csdn.net/qq_33557833/article/details/78035807
阅读全文
摘要:# 显示控件提示消息 import sys from PyQt5.QtWidgets import QHBoxLayout,QMainWindow,QApplication,QToolTip,QPushButton,QWidget from PyQt5.QtGui import QFont clas
阅读全文
摘要:import sys from PyQt5.QtWidgets import QMainWindow,QApplication from PyQt5.QtGui import QIcon ''' 窗口的setWindowIcon方法用于设置窗口的图标,只在Windows中可用 QAplication
阅读全文
摘要:我们直接用代码去理解屏幕坐标系 import sys from PyQt5.QtWidgets import QHBoxLayout,QMainWindow,QApplication,QPushButton,QWidget def onClick_Button(): print("1") print
阅读全文
摘要:import sys from PyQt5.QtWidgets import QHBoxLayout,QMainWindow,QApplication,QPushButton,QWidget class QuitApplication(QMainWindow): def __init__(self)
阅读全文
摘要:# QDesktopWidget import sys from PyQt5.QtWidgets import QDesktopWidget,QMainWindow,QApplication from PyQt5.QtGui import QIcon class CenterForm(QMainWi
阅读全文
摘要:import sys from PyQt5.QtWidgets import QMainWindow,QApplication from PyQt5.QtGui import QIcon class FirstMainWin(QMainWindow): def __init__(self): sup
阅读全文
摘要:不得不说 py的GUI实在是太难上手了 我现在突然很怀念MFC VB c#这些东西了 因为控件的代码你只要一点就能进入查看 而pyqt5 pyside2 都不可以 你要看就看全部的代码 你要改你也只能转换成py文件再改 你却得不到实时的反馈和交互 我也不知道我改了这段代码跑出来会怎么样 跑了之后又开
阅读全文
摘要:逛了逛国外论坛 这哥们跟我一样 我一晚上没睡 就为了这个 原来 我的py版本太高级了 我把py3.9卸载了 换上了老旧的3.76版本 成功了
阅读全文
摘要:用国内快速的镜像源即可 pip install PyQt5 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
阅读全文
摘要:cmd 输入 pip install PySide2 官方下载太慢 清华源: pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyside2 亲测报错 怎么办? 豆瓣镜像: pip install pyside2 -i https://
阅读全文
摘要:https://blog.csdn.net/JEsoloH/article/details/84677005?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.edu_weigh
阅读全文
摘要:是由于缺少了fm20.dll这个必要组件 网上找到 然后在工程中引用 找到路径 完美解决
阅读全文
摘要:https://blog.csdn.net/zxl2016/article/details/96482763
阅读全文
摘要:用哈希表实现的 https://blog.csdn.net/dream_you_to_life/article/details/46785741
阅读全文
摘要:#include<bits/stdc++.h> using namespace std; #define MAXSIZE 1000 typedef struct Linklist { char data; struct Linklist *lchild,*rchild; }Node; Linklis
阅读全文
摘要:gcd int gcd(int a,int b)///辗转相除法求最大公约数 { int t = a; while(a%b) { a=b; b=t%b; t=a; } return b; } View Code 或者 int gcd(int a, int b) { return b == 0 ? a
阅读全文
摘要:1 #include<bits/stdc++.h> 2 using namespace std; 3 typedef struct LinkNode 4 { 5 int data; 6 LinkNode* next; 7 }LinkNode; 8 LinkNode *InitList() //创建空
阅读全文
摘要:本质上字符串这种题都可以暴力穷举 但是还是要用更好的算法试试 我开始没有想到这是一道可以用动态规划解决的问题 1 class Solution { 2 public: 3 string longestPalindrome(string s) { 4 int n = s.size(); 5 vecto
阅读全文
摘要:并不是很难 因为完全可以暴力去做 也可以参照kmp 但是我要说的是 这种题也可以用很经典得到滑动窗口 1 class Solution { 2 public: 3 int lengthOfLongestSubstring(string s) { 4 // 哈希集合,记录每个字符是否出现过 5 uno
阅读全文
摘要:1 class Solution { 2 public: 3 int minimumOperations(string leaves) { 4 int n = leaves.size(); 5 vector<vector<int>> f(n, vector<int>(3)); 6 f[0][0] =
阅读全文
摘要:1 #include<bits/stdc++.h> 2 using namespace std; 3 int w[1001],v[100003],f[1001]={0}; 4 int main() 5 { 6 int m,n; 7 scanf("%d %d",&m,&n); //m容量 n种药材 8
阅读全文