自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(21)
  • 收藏
  • 关注

原创 计算机专业大学排名(全168所学校)

根据教育部最新第四轮学科评估结果可知,全国共有168所开设计算机专业的大学参与了计算机专业大学排名,其中排名前4的大学是北京大学、清华大学、浙江大学、国防科技大学,这是国内目前计算机专业排名第一梯队,能力不相上下,以下具体榜单,还比较权威,供大家参考:注:序号不代表排名,教育部评级相同为同一梯队。序号 学校名称 评估结果 1 北京大学 A+ 2 清华大...

2019-04-09 18:04:11 161404

转载 (转)python将pyd文件打包成whl文件用于安装

https://blog.csdn.net/congcong_i/article/details/119110409

2024-03-20 18:16:04 9

原创 ubuntu新安装gnome-desktop后运行pyside6/pyqt5程序报错

【代码】ubuntu新安装gnome-desktop后运行pyside6/pyqt5程序报错。

2024-03-08 09:48:33 310

原创 Windows的Linux子系统报错及解决方案

报错:0x80370114 The operation could not be started because a required feature is not installed.前面还有一小段,大概是说“linux子系统正在安装,大约几分钟。”原话找不到了解决方案: > wsl --set-default-version 1reference:https://github.com/MicrosoftDocs/WSL/issues/436...

2022-03-11 14:41:09 3481 4

转载 获取Python对象及其指向对象占用的全部内存空间

这里的内存占用的概念是指我们习惯思维上占用的空间大小,而sys模块中的getsizeof方法对于常规对象如String、Integer或者float等可以“正确地”取得其大小,但是对于list、tuple、dict、set等,只会计算该对象的“指针”所占空间,而对于其所指的内容并不会计算在内,这与人类的习惯思维不同。以下内容转自https://blog.csdn.net/S_o_l_o_n/article/details/102921863python中,sys模块里面有一个getsizeof函数.

2021-03-12 15:24:55 2424 1

原创 Flask解决1、同域名不同端口号的应用登录状态冲突问题,2、关闭浏览器后保持登录状态问题

1、同域名不同端口号的多个应用会共享浏览器的cookie,导致其登录状态冲突。解决方法:在flask中为每个应用设置不同的session名称app.config["SESSION_COOKIE_NAME"] = 'my-session:'2、关闭浏览器后保持登录状态# 保持登录,默认就是True# app.config["SESSION_PERMANENT"] = True# 默认31天app.config["PERMANENT_SESSION_LIFETIME"] = 24*

2021-03-12 10:26:58 1287

原创 终端关闭后,程序保持后台运行

终端关闭后,程序保持后台运行1、首选方法自定义服务2、使用setid指令将进程的ppid设为1,与tty无关[root@vm666666 ~]# setsid /root/v2ray/v2ray -config /root/v2ray/config.json 2>&1[root@vm666666 ~]# ps -ef | grep v2rayroot 1869 1 0 Nov14 ? 00:29:25 /root/v2ray/v2ray

2020-11-25 13:47:54 1002

原创 Python requests 设置http和socks 代理

代理如果需要使用代理,你可以通过为任意请求方法提供proxies参数来配置单个请求:import requestsproxies = { "http": "http://10.10.1.10:3128", "https": "http://10.10.1.10:1080",}requests.get("http://example.org", proxies=proxies)你也可以通过环境变量HTTP_PROXY和HTTPS_PROXY来配置代理。$ ...

2020-11-10 14:59:21 8786 1

原创 文件属性为RHSA的文件如何处理

最近下载网上的资源,解压以后用Python遍历时发现几个不可见的文件,用diskgenius查看发现其属性为RHSA,在Windows资源管理器中不可见,打开查看发现是资源发布者的小广告,尝试了常规方法都没有删除。最后用diskgenius处理掉了。文件属性为RHSA文件的简便处理方法:删除文件:用diskgenius右键选择“彻底删除文件”,一路确定即可。保留文件删除其RHSA属性:diskgenius右键复制到其他位置,再使用上述方法删除源文件。以下资料转自https://blog.c.

2020-11-02 16:23:01 2251

原创 基于python的captcha生成图像验证码

使用基于python的captcha生成图像验证码、添加噪点和干扰线。将图像保存至BytesIO对象,无需生成临时文件。使用base64.b64encode方法直接将字节流转换为base64编码。返回验证码字符串和图像的验证码图像的base64编码。from captcha.image import ImageCaptchafrom random import randint...

2020-01-04 21:46:40 2581 1

原创 matlab 用法随笔

1.cell 转 字符串:char()例:>> filename={'randomCenter.txt','result/specialCenter.txt'};>> char(filename(1))ans =randomCenter.txt2.字符串的连接:>> filename={'randomCenter.txt','re...

2019-09-28 21:31:43 333

原创 MongoDB 1067 意外终止

搜了几个方法,大致就是删除mongod.lock然后 删除服务再安装服务,试了一下还是启动不了只剩最后一个删库重装了删库前重启了一下服务器(操作系统)打开服务一看居然TM好了!!重启大法好重启治百病附:网上查的方法 MongoDB安装目录\data\将此文件夹下的mongod.lock删除 mongod.exe --config E:\ruanjian\M...

2019-07-21 00:02:37 915

原创 pyinstaller 打包含有 subprocess.Popen(cmdline,***,creationflags=0x08000000) 的程序时报毒

设置参数: creationflags=0x08000000 可以隐藏命令行窗口def run(self): # creationflags=0x08000000 使用 pyinstaller 打包成 exe 时隐藏命令行窗口 self.process = subprocess.Popen(self.cmdline, stdin=subprocess.PIPE, stdout...

2019-07-02 21:51:18 1786

转载 (转) python装饰器简介

Python装饰器(decorator)是在程序开发中经常使用到的功能,合理使用装饰器,能让我们的程序如虎添翼。装饰器引入初期及问题诞生假如现在在一个公司,有A B C三个业务部门,还有S一个基础服务部门,目前呢,S部门提供了两个函数,供其他部门调用,函数如下:def f1():print('f1 called')def f2():print('f2 calle...

2019-06-25 15:48:28 117

原创 Vue 快速开发之 - 网页版扫雷

前一阵子接触 Vue 和MVVM 思想, 相比起 MVC 思想有质的改变, 前端开发不再深陷于繁琐的 DOM 操作,而是专注于数据(model层)和用户视图(view层), 将业务逻辑与 DOM 操作分离开来, 实现快速开发和高效代码复用.另外作为扫雷骨灰级玩家, 闲来无事用周六下午的时间做了个扫雷自娱自乐.引入的库: <!-- jQuery --&g...

2019-06-02 16:08:59 995

原创 PAT-A1148 Werewolf - Simple Version/PAT-B1089 狼人杀-简单版 (20)

 Werewolf(狼人杀) is a game in which the players are partitioned into two parties: the werewolves and the human beings. Suppose that in a game,player #1 said: "Player #2 is a werewolf."; player #2 sai...

2018-09-10 00:51:47 508 3

原创 PAT-A1150 Travelling Salesman Problem (25)

The "travelling salesman problem" asks the following question: "Given a list of cities and the distances between each pair of cities, what is the shortest possible route that visits each city and retu...

2018-09-09 02:01:49 477

原创 PAT-A1151 LCA in a Binary Tree (30)

The lowest common ancestor (LCA) of two nodes U and V in a tree is the deepest node that has both U and V as descendants.Given any two nodes in a binary tree, you are supposed to find their LCA.In...

2018-09-09 01:20:12 661

原创 PAT-A1149 Dangerous Goods Packaging/PAT-B1090 危险品装箱 (25)

甲级题目: When shipping goods with containers, we have to be careful not to pack some incompatible goods into the same container, or we might get ourselves in serious trouble. For example, oxidizing age...

2018-09-09 00:48:48 600

原创 PAT-A1135 Is It A Red-Black Tree(30)

时间限制: 400 ms    内存限制: 64 MB    代码长度限制: 16 KB  There is a kind of balanced binary search tree named red-black tree in the data structure. It has the following 5 properties:(1) Every node is either ...

2018-08-29 19:37:52 266

原创 PAT-A1014 Waiting in Line (30)

时间限制: 400 ms 内存限制: 64 MB 代码长度限制: 16 KBSuppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules for the c...

2018-08-24 00:46:41 241

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除