摘要:
Mysql 时分秒写法 %H:%i:%S Python 时分秒写法 %H:%M:%S
阅读全文
posted @ 2022-01-10 12:51
Hany47315
阅读(92)
推荐(0)
摘要:
确保使用的 Linux 服务器中 Python 环境是否安装了最新的 gunicorn 版本,
阅读全文
posted @ 2021-12-20 13:49
Hany47315
阅读(189)
推荐(0)
posted @ 2021-12-09 09:23
Hany47315
阅读(124)
推荐(0)
摘要:
pip install jupyter notebook -i http://pypi.mirrors.ustc.edu.cn/simple/ --trusted-host pypi.mirrors.ustc.edu.cn
阅读全文
posted @ 2021-12-06 15:46
Hany47315
阅读(63)
推荐(0)
摘要:
set PYTHONIOENCODING=utf-8
阅读全文
posted @ 2021-11-08 09:42
Hany47315
阅读(108)
推荐(0)
摘要:
sudo dd if=windows_10_professional_x64_2021.iso of=/dev/sdc bs=4M TRANSLATE with x English Arabic Hebrew Polish Bulgarian Hindi Portuguese Catalan Hmo
阅读全文
posted @ 2021-10-25 20:22
Hany47315
阅读(164)
推荐(0)
摘要:
https://blog.csdn.net/ShellDawn/article/details/75161831 将python安装根目录下 Lib\site-packages\pywin32_system32里的文件 拷贝到windows\system32下
阅读全文
posted @ 2021-10-25 15:12
Hany47315
阅读(434)
推荐(0)
摘要:
在 https://www.lfd.uci.edu/~gohlke/pythonlibs/ 网站进行下载对应 python 版本的 whl 文件 我的为 python 3.8 下载完成后,使用 pip install xx.whl 进行安装
阅读全文
posted @ 2021-10-22 16:59
Hany47315
阅读(3796)
推荐(0)
摘要:
Unofficial Windows Binaries for Python Extension Packages https://www.lfd.uci.edu/~gohlke/pythonlibs/#statsmodels 寻找自己需要进行下载的 whl 包 下载后,在自己的 python 环境
阅读全文
posted @ 2021-10-22 16:50
Hany47315
阅读(339)
推荐(0)
摘要:
except Exception as e: print(e,e.__traceback__.tb_lineno) except Exception as e: print(e,e.__traceback__.tb_lineno)
阅读全文
posted @ 2021-10-19 14:00
Hany47315
阅读(649)
推荐(0)
摘要:
https://www.cnblogs.com/tastepy/p/13328847.html 在网上找了好久,最后在上面的链接中,找到了解决方案 import logging def get_logger(logger_name,log_file,level=logging.INFO): logg
阅读全文
posted @ 2021-10-16 10:06
Hany47315
阅读(106)
推荐(0)
摘要:
show status like 'Threads%'; show variables like '%max_connection%';
阅读全文
posted @ 2021-10-15 16:33
Hany47315
阅读(97)
推荐(0)
摘要:
import signal import inspect def _async_raise(tid, exctype): """raises the exception, performs cleanup if needed""" tid = ctypes.c_long(tid) if not in
阅读全文
posted @ 2021-10-15 14:41
Hany47315
阅读(86)
推荐(0)
摘要:
import sys sys.setrecursionlimit(10000) sys.getrecursionlimit()
阅读全文
posted @ 2021-10-15 14:39
Hany47315
阅读(260)
推荐(0)
摘要:
python -m ensurepip
阅读全文
posted @ 2021-10-13 15:41
Hany47315
阅读(65)
推荐(0)
posted @ 2021-10-13 15:34
Hany47315
阅读(1005)
推荐(0)
摘要:
path 写法修改为 `path`
阅读全文
posted @ 2021-10-08 15:05
Hany47315
阅读(35)
推荐(0)
摘要:
import os path = r'路径' for dir_path,dir_names,file_names in os.walk(path): for filename in file_names: print(os.path.join(dir_path,filename))
阅读全文
posted @ 2021-10-08 10:01
Hany47315
阅读(307)
推荐(0)
摘要:
https://www.cnblogs.com/haohao77/p/9034499.html TRANSLATE with x English Arabic Hebrew Polish Bulgarian Hindi Portuguese Catalan Hmong Daw Romanian Ch
阅读全文
posted @ 2021-10-07 22:00
Hany47315
阅读(46)
推荐(0)
摘要:
where 子句中不要使用 != 或 <> 对 where , order by 操作会涉及到的列上建立索引 在 where 子句中不要对字段进行 null 值判断 将可能出现空值的列设置为 0 在查询时,可以通过 select 字段 from 表名 where 另一个字段=0 在 where 子句
阅读全文
posted @ 2021-10-06 16:02
Hany47315
阅读(50)
推荐(0)
摘要:
index = False,header = None,sep = '\t'
阅读全文
posted @ 2021-10-06 14:35
Hany47315
阅读(422)
推荐(0)
摘要:
前提 安装 tabulate 库 pip install tabulate 不然会在调用 df.to_markdown() 时报错 Missing optional dependency 'tabulate'. Use pip or conda to install tabulate. df.to_
阅读全文
posted @ 2021-10-06 14:33
Hany47315
阅读(721)
推荐(0)
摘要:
untitled.txt 文本内容 One I have a car. Two My name is Hany. df = pd.read_table('untitled.txt',sep=' \-\-\-\- ',engine = 'python',header = None) 注:其中的 seq
阅读全文
posted @ 2021-10-06 14:23
Hany47315
阅读(289)
推荐(0)
摘要:
header 表示将第几行设置为列名 header = None header = 3 index_col 表示将某一列或某几列作为索引 index_col = ['a'] index_col = ['a','b'] usecols 表示读取哪一列 不设置为默认读取全部列 usecols = ['a
阅读全文
posted @ 2021-10-06 14:12
Hany47315
阅读(788)
推荐(0)
posted @ 2021-10-06 13:58
Hany47315
阅读(133)
推荐(0)
摘要:
np.array 对象 调用 cumprod 可以实现累乘效果 调用 cumsum 可以实现累加效果 调用 np.diff 查看后一个与前一个的差值
阅读全文
posted @ 2021-10-06 13:45
Hany47315
阅读(229)
推荐(0)
摘要:
在我电脑上面的解决方案为 pip install pyzmq==19.0.2 再重新在 cmd 下输入 jupyter notebook 就可以运行与保存了。
阅读全文
posted @ 2021-10-06 13:39
Hany47315
阅读(624)
推荐(0)
摘要:
知乎:数据分析资料汇总 tkinter SciPy Numpy Numpy中文网 The Python Graph Gallery MegEngine 1.6 文档 Matplotlib 3.4.3 Pandas Pandas必会的方法汇总 Seaborn 0.11.2 Seaborn 0.9 中文
阅读全文
posted @ 2021-10-06 12:12
Hany47315
阅读(708)
推荐(0)
摘要:
git clone 慢,使用镜像 https://www.cnblogs.com/hany-postq473111315/p/15370803.html 从B站看到的资源网站(确实是很不错,推荐!) https://www.cnblogs.com/hany-postq473111315/p/1536
阅读全文
posted @ 2021-10-06 11:27
Hany47315
阅读(50)
推荐(0)
摘要:
使用的方式:在前面加上 git clone https://github.com.cnpmjs.org/ 例如:我们要 git clone 的 git 链接为 git clone https://github.com/libratbag/piper.git 我们在终端需要进行输入的为 git clo
阅读全文
posted @ 2021-10-06 11:15
Hany47315
阅读(572)
推荐(0)
摘要:
在 U 盘刚刚插入的时候,如果你已经插入了很久了,请拔下来,重新插入。 注:在进行挂载后,不要打开 U 盘内的 任何文件夹,防止目标忙。 查看 U盘是哪一个盘 示例:/dev/sdd1 df -h 在关闭了所有打开 U盘的文件夹后 注:不要打开 U盘内的文件夹。 进行以下命令 我的是 /dev/sd
阅读全文
posted @ 2021-10-04 21:20
Hany47315
阅读(1043)
推荐(1)
摘要:
前提 安装 tkinter (windows自带) manjaor 系统安装命令为 yay -S tk 正文 安装 auto-py-to-exe pip install auto-py-to-exe 在cmd 终端下输入 auto-py-to-exe 即可进行可视化生成 exe 我们根据自己的需要进
阅读全文
posted @ 2021-10-04 20:46
Hany47315
阅读(1628)
推荐(1)
摘要:
https://www.bilibili.com/video/BV1Nf4y1a7DT?from=search&seid=17930285219226202048&spm_id_from=333.337.0.0 以下为根据此视频链接评论内容,进行处理后的网站链接 一、视频类 预告片世界 33台词 M
阅读全文
posted @ 2021-10-03 22:09
Hany47315
阅读(6823)
推荐(0)
摘要:
我看了很多网上的内容,解决的方案有很多。但是我这边只是刚刚安装了 mariadb,考虑到不可能存在那些问题。原因可能是安装过程出现了问题。 安装 mariadb yay -S mariadb 查看状态 sudo systemctl status mariadb sudo mysql_install_
阅读全文
posted @ 2021-10-03 20:48
Hany47315
阅读(707)
推荐(0)
摘要:
据说是安装 manjaro 后每日要进行的工作 timeshift sudo pacman -Syyu 选择最快的国内源 sudo pacman-mirrors -i -c China -m rank 更新 sudo pacman -Syyu 安装yay,便于安装软件使用 sudo pacman -
阅读全文
posted @ 2021-10-03 20:32
Hany47315
阅读(224)
推荐(0)
摘要:
博客内容调整本来想着是只做关于python相关的基础内容。 但是随着技术的不断深入,我发现加入一些如 linux 或其他编程语言 的内容,现在变得十分重要。因此,以后可能会发布一些其他的内容,如linux 命令或 一些其他编程语言的心得 或 相关技术难点的解决方法。
阅读全文
posted @ 2021-10-03 20:15
Hany47315
阅读(46)
推荐(0)
摘要:
在根目录下 , mkdir .pip subl ~/.pip/pip.conf 或者 vim ~/.pip/pip.conf [global] timeout=2000 index-url=https://pypi.mirrors.ustc.edu.cn/simple/ trusted-host=p
阅读全文
posted @ 2021-10-02 22:10
Hany47315
阅读(354)
推荐(0)
摘要:
sudo apt-get install python3-pip
阅读全文
posted @ 2021-10-02 21:04
Hany47315
阅读(227)
推荐(0)
摘要:
sudo apt install -y mysql-client sudo apt-get install libmysqlclient-dev sudo apt install libssl-dev sudo apt install libcrypto++-dev pip3 install mys
阅读全文
posted @ 2021-10-01 22:55
Hany47315
阅读(197)
推荐(0)
摘要:
项目右键打开终端,输入下面一行,然后重新运行toxset PYTHONIOENCODING=utf-8
阅读全文
posted @ 2021-10-01 21:35
Hany47315
阅读(46)
推荐(0)