优化
CtrlCV工程师
做一棵小草,奉献一片绿色,做一名开发者,分享一点经验;
展开
-
PyCharm HTML注释 方式修改
{# #} 修改为 <!-- --> 文件>设置>语言和框架>目标语言 改为None即可原创 2021-05-13 13:59:18 · 254 阅读 · 0 评论 -
Python更换 pip 到国内 pip源
国内pip源 # 清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/ https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/ # 豆瓣源 https://pypi.doubanio.com/simple/ # 阿里源 https://mirrors.aliyun.com/pypi/simple/ 临时使用 pip install PackageName -i https://mirrors.aliyun.com/原创 2021-02-04 16:40:32 · 464 阅读 · 0 评论 -
Python 使用with管理数据库连接 MySQL/MSSQL/SQLite
MySQL和SQLServer、SQLite都大致相同 import pymssql MSSQL_AUTH = {'host': '127.0.0.1', 'user': 'sa', 'password': 'sa.123', 'database': 'DevDatabase'} MYSQL_AUTH = {'host': '127.0.0.1', 'user': 'root', 'password': 'Root.123', 'db': 'DevDatabase'} class MSSQL:原创 2021-01-30 14:25:06 · 334 阅读 · 1 评论 -
jupyter Notebook主题更换-(简)
主题更改工具 安装: pip install --upgrade jupyterthemes 使用: # 查看可用主题: jt -l # 白色主题(推荐) jt --lineh 140 -f consolamono -tf ptmono -t grade3 -ofs 14 -nfs 14 -tfs 14 -fs 14 -T -N # 黑色主题 jt -t monokai -f fira -fs...转载 2019-07-11 14:49:01 · 235 阅读 · 0 评论