上一页 1 2 3 4 5 6 ··· 17 下一页
摘要: https://blog.csdn.net/ShellDawn/article/details/75161831 将python安装根目录下 Lib\site-packages\pywin32_system32里的文件 拷贝到windows\system32下 阅读全文
posted @ 2021-10-25 15:12 CodeYaSuo 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 在 https://www.lfd.uci.edu/~gohlke/pythonlibs/ 网站进行下载对应 python 版本的 whl 文件 我的为 python 3.8 下载完成后,使用 pip install xx.whl 进行安装 阅读全文
posted @ 2021-10-22 16:59 CodeYaSuo 阅读(2697) 评论(0) 推荐(0) 编辑
摘要: Unofficial Windows Binaries for Python Extension Packages https://www.lfd.uci.edu/~gohlke/pythonlibs/#statsmodels 寻找自己需要进行下载的 whl 包 下载后,在自己的 python 环境 阅读全文
posted @ 2021-10-22 16:50 CodeYaSuo 阅读(214) 评论(0) 推荐(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 CodeYaSuo 阅读(595) 评论(0) 推荐(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 CodeYaSuo 阅读(81) 评论(0) 推荐(0) 编辑
摘要: show status like 'Threads%'; show variables like '%max_connection%'; 阅读全文
posted @ 2021-10-15 16:33 CodeYaSuo 阅读(81) 评论(0) 推荐(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 CodeYaSuo 阅读(77) 评论(0) 推荐(0) 编辑
摘要: import sys sys.setrecursionlimit(10000) sys.getrecursionlimit() 阅读全文
posted @ 2021-10-15 14:39 CodeYaSuo 阅读(176) 评论(0) 推荐(0) 编辑
摘要: python -m ensurepip 阅读全文
posted @ 2021-10-13 15:41 CodeYaSuo 阅读(55) 评论(0) 推荐(0) 编辑
摘要: pip install sip 阅读全文
posted @ 2021-10-13 15:34 CodeYaSuo 阅读(807) 评论(0) 推荐(0) 编辑
摘要: path 写法修改为 `path` 阅读全文
posted @ 2021-10-08 15:05 CodeYaSuo 阅读(27) 评论(0) 推荐(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 CodeYaSuo 阅读(294) 评论(0) 推荐(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 CodeYaSuo 阅读(24) 评论(0) 推荐(0) 编辑
摘要: where 子句中不要使用 != 或 <> 对 where , order by 操作会涉及到的列上建立索引 在 where 子句中不要对字段进行 null 值判断 将可能出现空值的列设置为 0 在查询时,可以通过 select 字段 from 表名 where 另一个字段=0 在 where 子句 阅读全文
posted @ 2021-10-06 16:02 CodeYaSuo 阅读(36) 评论(0) 推荐(0) 编辑
摘要: index = False,header = None,sep = '\t' 阅读全文
posted @ 2021-10-06 14:35 CodeYaSuo 阅读(352) 评论(0) 推荐(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 CodeYaSuo 阅读(334) 评论(0) 推荐(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 CodeYaSuo 阅读(249) 评论(0) 推荐(0) 编辑
摘要: header 表示将第几行设置为列名 header = None header = 3 index_col 表示将某一列或某几列作为索引 index_col = ['a'] index_col = ['a','b'] usecols 表示读取哪一列 不设置为默认读取全部列 usecols = ['a 阅读全文
posted @ 2021-10-06 14:12 CodeYaSuo 阅读(699) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-10-06 13:58 CodeYaSuo 阅读(106) 评论(0) 推荐(0) 编辑
摘要: np.array 对象 调用 cumprod 可以实现累乘效果 调用 cumsum 可以实现累加效果 调用 np.diff 查看后一个与前一个的差值 阅读全文
posted @ 2021-10-06 13:45 CodeYaSuo 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 在我电脑上面的解决方案为 pip install pyzmq==19.0.2 再重新在 cmd 下输入 jupyter notebook 就可以运行与保存了。 阅读全文
posted @ 2021-10-06 13:39 CodeYaSuo 阅读(560) 评论(0) 推荐(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 CodeYaSuo 阅读(621) 评论(0) 推荐(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 CodeYaSuo 阅读(28) 评论(0) 推荐(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 CodeYaSuo 阅读(497) 评论(0) 推荐(0) 编辑
摘要: 在 U 盘刚刚插入的时候,如果你已经插入了很久了,请拔下来,重新插入。 注:在进行挂载后,不要打开 U 盘内的 任何文件夹,防止目标忙。 查看 U盘是哪一个盘 示例:/dev/sdd1 df -h 在关闭了所有打开 U盘的文件夹后 注:不要打开 U盘内的文件夹。 进行以下命令 我的是 /dev/sd 阅读全文
posted @ 2021-10-04 21:20 CodeYaSuo 阅读(853) 评论(0) 推荐(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 CodeYaSuo 阅读(1444) 评论(0) 推荐(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 CodeYaSuo 阅读(5217) 评论(0) 推荐(0) 编辑
摘要: 我看了很多网上的内容,解决的方案有很多。但是我这边只是刚刚安装了 mariadb,考虑到不可能存在那些问题。原因可能是安装过程出现了问题。 安装 mariadb yay -S mariadb 查看状态 sudo systemctl status mariadb sudo mysql_install_ 阅读全文
posted @ 2021-10-03 20:48 CodeYaSuo 阅读(664) 评论(0) 推荐(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 CodeYaSuo 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 博客内容调整本来想着是只做关于python相关的基础内容。 但是随着技术的不断深入,我发现加入一些如 linux 或其他编程语言 的内容,现在变得十分重要。因此,以后可能会发布一些其他的内容,如linux 命令或 一些其他编程语言的心得 或 相关技术难点的解决方法。 阅读全文
posted @ 2021-10-03 20:15 CodeYaSuo 阅读(37) 评论(0) 推荐(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 CodeYaSuo 阅读(339) 评论(0) 推荐(0) 编辑
摘要: sudo apt-get install python3-pip 阅读全文
posted @ 2021-10-02 21:04 CodeYaSuo 阅读(210) 评论(0) 推荐(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 CodeYaSuo 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 项目右键打开终端,输入下面一行,然后重新运行toxset PYTHONIOENCODING=utf-8 阅读全文
posted @ 2021-10-01 21:35 CodeYaSuo 阅读(31) 评论(0) 推荐(0) 编辑
摘要: np.cov(np.array对象, np.array对象) np.corrcoef(np.array对象,np.array对象) 阅读全文
posted @ 2021-10-01 20:59 CodeYaSuo 阅读(278) 评论(0) 推荐(0) 编辑
摘要: [(lambda x:x的表达式)(i) for i in 可迭代对象] 注: (lambda x:x的表达式)(i) 个人理解: 此时的 i 是(i) , 表示调用匿名函数 阅读全文
posted @ 2021-10-01 13:38 CodeYaSuo 阅读(43) 评论(0) 推荐(0) 编辑
摘要: value = 1 if flag else 0 阅读全文
posted @ 2021-10-01 13:32 CodeYaSuo 阅读(41) 评论(0) 推荐(0) 编辑
摘要: pandas.isnull(值) 阅读全文
posted @ 2021-09-30 11:07 CodeYaSuo 阅读(1296) 评论(0) 推荐(0) 编辑
摘要: 在读取时添加 header = None 阅读全文
posted @ 2021-09-30 11:07 CodeYaSuo 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 点击菜单 “Help | Edit Custom VM options…” 添加下面一行到结尾,然后重启Pycharm-Drecreate.x11.input.method=true 阅读全文
posted @ 2021-09-29 19:41 CodeYaSuo 阅读(134) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 17 下一页