2024年4月17日

摘要: from pylab import mplmpl.rcParams['font.sans-serif'] = ['SimHei'] 阅读全文
posted @ 2024-04-17 16:33 帅胡 阅读(2) 评论(0) 推荐(0) 编辑

2024年3月20日

摘要: ImportError: cannot import name 'Iterable' from 'collections'报错解决方案 try: from collections.abc import Iterable except ImportError: from collections imp 阅读全文
posted @ 2024-03-20 14:18 帅胡 阅读(11) 评论(0) 推荐(0) 编辑

2023年8月1日

摘要: 用Python的tkinter库做GUI程序,Entry控件被我们用来获取用户的输入,不过很多时候,我们希望GUI界面上的Entry控件能有默认值,用户可以修改默认值,也可以不修改。默认值提高了软件的易用性。 直接看代码: import tkinter as tk root = tk.Tk() lb 阅读全文
posted @ 2023-08-01 09:00 帅胡 阅读(543) 评论(0) 推荐(0) 编辑

2023年7月31日

摘要: import json class Get_Dict_All_Keyvalue: """ 递归获取多维嵌套字典所有层级的key和value """ def __init__(self, analysis_dict): #判断类型,如果是str的需要进行loads处理 self.res_dict = 阅读全文
posted @ 2023-07-31 18:31 帅胡 阅读(108) 评论(0) 推荐(0) 编辑

2023年7月27日

摘要: 1. 下载压缩包首先,我们需要到Redis的官网上下载安装包,下载地址是:https://redis.io/download/这里Redis的最新稳定版是 6.2.6版本,单击 Download 6.2.6 sources即可下载安装包。 如果需要下载其他版本的话,可以点击地址 http://dow 阅读全文
posted @ 2023-07-27 16:59 帅胡 阅读(133) 评论(0) 推荐(0) 编辑

2023年7月14日

摘要: yum -y install gcc automake autoconf libtool make 阅读全文
posted @ 2023-07-14 18:18 帅胡 阅读(16) 评论(0) 推荐(0) 编辑

2023年7月12日

摘要: 进入到安装下cd /etc/yum.repos.d/ 安装所需要的url:可以使用浏览器打开: http://mirrors.aliyun.com/centos/8/BaseOS/x86_64/os/Packages/ 所需要下载的安装包: yum-4.7.0-4.el8.noarch.rpmyum 阅读全文
posted @ 2023-07-12 13:34 帅胡 阅读(152) 评论(0) 推荐(0) 编辑

2023年7月10日

摘要: 一. git 设置http代理 1.设置代理 http/https协议(clone https://前缀的repo会走ss) git config --global http.proxy 'socks5://127.0.0.1:1080' git config --global https.prox 阅读全文
posted @ 2023-07-10 16:52 帅胡 阅读(518) 评论(0) 推荐(0) 编辑

2023年6月25日

摘要: 最近在配置文件config.ini有中文输出时,python 3 打印出来显示乱码。初步判断是由于编码问题。在 Python 3 中虽有encoding 参数,但是对于有BOM(如Windows下用记事本指定为utf-8)的文件,需要使用 utf-8-sig, 使用utf-8没办法。 配置文件 co 阅读全文
posted @ 2023-06-25 09:32 帅胡 阅读(283) 评论(0) 推荐(0) 编辑

2023年6月4日

摘要: 有时候我们在java工程运行的时候有可能需要切换JDK的版本,下面介绍一下在idea中如何切换工程的JDK版本。 1.选中File->Project Structure,如下 2. 点进去,点击SDKs可以添加新的SDK文件 3. 添加完成后,点击Project,选择新加的JDK,如下。 4.同时最 阅读全文
posted @ 2023-06-04 17:18 帅胡 阅读(341) 评论(0) 推荐(0) 编辑

导航