
python
文章平均质量分 51
且漫CN
观古知今思进退,读书养志识春秋,商务地球号:qmcn0125
展开
-
`PyInstaller` 和`importlib`搭配使用
`PyInstaller` 是一个流行的工具,可以将 Python 应用程序转换为独立的可执行文件。当处理动态导入或像 `importlib` 这样的包时,会遇到编译出来的exe文件无法加载动态import,因为 `PyInstaller` 需要检测到你的应用程序使用的所有依赖项。原创 2024-06-24 10:12:26 · 738 阅读 · 0 评论 -
python异步IO完全指南
Async IO is a bit lesser known than its tried-and-true cousins, multiprocessing and threading. This section will give you a fuller picture of what async IO is and how it fits into its surrounding landscape. 和其他并行编程技术,如多线程、多进程,相比,人们对异步IO的了解要少得多。原创 2023-08-11 15:20:22 · 775 阅读 · 0 评论 -
python获取文件名和拓展名
import osdef jwkj_get_filePath_fileName_fileExt(filename): (filepath,tempfilename) = os.path.split(filename); (shotname,extension) = os.path.splitext(tempfilename); return filepath,shotname,extensionif __name__ == '__main__': print(jwkj_get原创 2021-10-26 10:46:02 · 738 阅读 · 0 评论 -
tmux 安装使用教程
tmux安装使用教程tmux 下载安装1. tar xvf tmux-2.6.tar.gz 2. ./configure && make && sudo make install 错误信息: error: libevent not foundsudo apt-get install libev...原创 2019-12-19 10:21:19 · 615 阅读 · 0 评论 -
ubuntu16.04-cuda10.2-cudnn7.6.4 安装
1.禁用nouveausudo vim /etc/modprobe.d/blacklist.confblacklist nouveausudo update-initramfs -urebootlsmod | grep nouveau2.停止可视化桌面sudo telinit 33.安装驱动sudo chmod a+x NVIDIA-Linux-x86_64-440....原创 2019-12-17 18:11:54 · 2042 阅读 · 0 评论 -
PyQt5 类图关系
转载:https://blog.youkuaiyun.com/yl_best/article/details/83818485QWidget继承自QObject和QPaintDeviceQLayout继承自QObject和QLayoutItem转载 2019-10-16 10:55:21 · 900 阅读 · 0 评论 -
Jupyter Notebook
Jupyter Notebook安装 jupyter ipykernel在虚拟环境下安装:pip install ipykernel指定虚拟环境安装ipykernel包。即:conda install -n dlfive ipykernel新创建虚拟环境,预装ipykernel。conda create -n dlfive python=3.5.0 ipykernel卸载pip...原创 2018-08-22 15:09:33 · 249 阅读 · 0 评论 -
python 读取文件,如何去掉换行符"\n"
data.txt文本内容dogpersoncatwith open('data.txt') as f: data = f.readlines() print(data)with open('data.txt') as f: data = f.read().splitlines() print(data)with open('data.tx...原创 2018-05-03 01:28:52 · 7087 阅读 · 1 评论