# 环境&安装
## Pycharm本身没有Python编译器;Anaconda带有Python编译器并且可以管理Python其他包,但本身不是集成开发环境(IDE)。
## Jupyter Notebook介绍、安装及使用教程
参考https://zhuanlan.zhihu.com/p/33105153
## Anaconda环境相关
参考https://blog.csdn.net/u014421797/article/details/104338643
## Anaconda国内源
参考https://blog.csdn.net/qq_45654306/article/details/104357353
## conda安装指定版本用 =
pip安装指定版本用 ==
两者安装区别,参考https://www.zhihu.com/question/323484250?sort=created
## conda查找待安装包版本
conda search 包名
## conda查找已安装包版本
conda list 包名
## pycharm使用技巧:自动调整代码格式汇总
主要使用Alt+Ctrl+L
参考https://zhuanlan.zhihu.com/p/281792536
## pycharm使用技巧:恢复(reset)误删文件的方法
参考https://www.jb51.net/article/149289.htm
## pycharm使用技巧:取消Pycharm中sql语句的高亮背景色
参考https://blog.csdn.net/weixin_38201728/article/details/98027752
## 在jupyter notebook中导入库失败No module named xxx,但在命令行中可以导入的问题
参考https://blog.csdn.net/sdywtzymy/article/details/104286885
## jupyter notebook 切换默认环境
参考https://blog.csdn.net/u014264373/article/details/86541767
## jupyter中显示DataFrame的全部行和列
参考https://www.cnblogs.com/bbzqz/p/14336149.html
##
# 语言特性
## if __name__ == '__main__' 如何正确理解?
参考https://www.zhihu.com/question/49136398
## 字符串前面加u,r,b的含义
参考https://www.cnblogs.com/liangmingshen/p/9274021.html
## re.search()方法
参考https://blog.csdn.net/m0_37360684/article/details/84140403
## Pickle和Json模块
参考https://zhuanlan.zhihu.com/p/271674011
## 生成与已知列表等长度+元素为0的列表(list推导式)
参考https://www.cnblogs.com/xingchuxin/p/10440890.html
## append() 和 extend()
参考https://blog.csdn.net/qq_41800366/article/details/86367465
## 引用(import)文件夹下的py文件的方法
参考https://blog.csdn.net/fengshanghere/article/details/82968052
## 报错:'dict' object has no attribute 'iteritems'
参考https://blog.csdn.net/hc1017/article/details/79977519
## 编写Switch语句
参考https://blog.csdn.net/rocky_03/article/details/70768511
## 集合操作&、|、-、^、与and、or
参考https://blog.csdn.net/weixin_44675377/article/details/89420690
## 报错:TypeError: '>' not supported between instances of 'str' and 'int'(需要进行类型转换)
参考https://www.cnblogs.com/xisheng/p/7531862.html
## 可迭代对象,迭代器,生成器的区别
参考https://blog.csdn.net/liangjisheng/article/details/79776008
## 星号作用:解包&打散
参考https://www.cnblogs.com/bigtreei/p/8343081.html
## Itertools.takewhile()
参考https://vimsky.com/examples/usage/python-itertools-takewhile.html
# Web后端
## django数据分析平台
参考https://zhuanlan.zhihu.com/p/142490087
## vscode运行django:
conda activate django
python manage.py runserver 127.0.0.1:8000(监听的地址)
## django中修改了css文件,浏览器却没有同步 -> 需要到浏览器(Chrome为例)设置里“清除浏览数据” - “清除缓存的图片和文件”
## 《Python Crash Course》中Django1.x到Django3.x的一些变动
'NoneType' object has no attribute 'decode' 参考https://blog.csdn.net/weixin_42427638/article/details/80640817
__init__() missing 1 required positional argument: 'on_delete' 参考https://www.cnblogs.com/phyger/p/8035253.html
Specifying a namespace in include () without providing an app_name 参考https://blog.csdn.net/qq_27437781/article/details/80436799
url与path及re_path区别 参考https://www.jianshu.com/p/cd5a91222e1e、https://stackoverflow.com/questions/47661536/django-2-0-path-error-2-0-w001-has-a-route-that-contains-p-begins-wit
No module named 'django.core.urlresolvers' 参考https://blog.csdn.net/a1209849629/article/details/105791819
## Django MTV和MVC的区别
参考http://c.biancheng.net/view/7288.html
https://blog.csdn.net/qq_43367746/article/details/84282334
## os.listdir() 方法
参考https://www.runoob.com/python/os-listdir.html
## Flask中的get和post请求
参考https://blog.csdn.net/xiewenbo/article/details/103476620
## Flask实现跨域请求的处理方法
参考https://blog.csdn.net/wangshu_liang/article/details/86490137
## Flask返回数据的五种方式
参考http://www.manongjc.com/detail/8-yqlnasxkneiykew.html
## os绝对路径与相对路径
参考https://www.cnblogs.com/BlueFire-py/p/8833255.html
## Django跨域问题解决方案
参考https://www.cnblogs.com/leoych/p/15320669.html
# 数据可视化
## Seaborn库的基础使用(画板主题及颜色选择)
参考https://blog.csdn.net/qq_22592457/article/details/103383711
## Seaborn教程
参考https://zhuanlan.zhihu.com/p/40303932
## Seaborn数据下载链接出错问题
参考https://blog.csdn.net/qq_43474959/article/details/107902932
## Plotly教程
参考https://www.jianshu.com/p/e5fb1b5c0957
## Matplotlib颜色设置及颜色对照表
参考https://zhuanlan.zhihu.com/p/65220518
## WordCloud修改色调
参考https://blog.csdn.net/u010152318/article/details/80242460
## Wordcloud:通过频率生成(generate_from_frequencies)
参考https://stackoverflow.com/questions/43043437/wordcloud-python-with-generate-from-frequencies
https://www.cnblogs.com/liangmingshen/p/11312257.html
## fig, ax = plt.subplots()含义?
参考https://blog.csdn.net/htuhxf/article/details/82986440
## matplotlib报错: AttributeError: ‘Rectangle’ object has no property ‘normed’
参考https://blog.csdn.net/qq_45069279/article/details/105636669
## seaborn.load_dataset加载本地数据
参考https://zhuanlan.zhihu.com/p/228725955
# 爬虫
## fake_useragent.errors.FakeUserAgentError: Maximum amount of retries reached
参考https://blog.csdn.net/shaooping/article/details/90296667
## 大众点评字体加密
参考https://blog.csdn.net/xtreallydance/article/details/113468004
https://www.bilibili.com/video/BV1uC4y1t78d
## requests使用代理爬取
参考https://blog.csdn.net/haeasringnar/article/details/82558760
https://cloud.tencent.com/developer/article/1372830
----------------------------------------------------------------------------------------------------------------
记一次从虚拟机拿出py所遇到的问题
## VirtualBox如何与主机共享文件(无法双向拷贝时)
参考https://blog.csdn.net/haikuovstiankong/article/details/81676262
https://www.cnblogs.com/xing901022/p/5774677.html
如果遇到权限问题需要使用sudo或su切换root
## 环境配置问题:
未切换环境
conda activate data
没装TensorFlow
pip install tensorflow 装了2.x版本
没装opencv
pip install opencv-python 装了4.x版本
没装pygame
pip install pygame 装了2.x版本
TensorFlow2.x版本过高
pip uninstall tensorflow
conda install tensorflow=1.14.0
Python3.8版本过高(TensorFlow1 不支持 Python3.8,降级Python和安装是一样的,指定版本号即可)
conda install python=3.6
conda install tensorflow=1.14.0
h5py有问题
pip uninstall h5py
参考https://blog.csdn.net/zhanghao_0517/article/details/109630391
opencv4.x版本过高
pip install opencv-python==3.4.5.20
pygame有问题
pip uninstall pygame
pip install pygame
参考https://ask.csdn.net/questions/760908
----------------------------------------------------------------------------------------------------------------