# 环境&安装
## 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
# 数据处理
## numpy.random.randint用法
参考https://blog.csdn.net/u011851421/article/details/83544853
## 打开.data文件的步骤
参考https://blog.csdn.net/ziqingnian/article/details/108013340
## Sklearn的train_test_split用法
参考https://blog.csdn.net/fxlou/article/details/79189106
## No module named 'sklearn.cross_validation'解决方法
参考https://blog.csdn.net/rocling/article/details/89002209
## No module named 'sklearn.grid_search'
参考https://blog.csdn.net/u012852847/article/details/84639213/
## 控制台打印数据多显示不完全的解决办法
参考https://blog.csdn.net/m0_46624667/article/details/109773960
## Print 数组无法完整输出解决方法
参考https://blog.csdn.net/hustwayne/article/details/84393485
## pandas中to_dict的用法详解
参考https://www.jb51.net/article/141481.htm
## DictVectorizer的使用
参考https://blog.csdn.net/qq_36847641/article/details/78279309
## Numpy中stack(),hstack(),vstack()函数详解
参考https://blog.csdn.net/csdn15698845876/article/details/73380803
## numpy.random.uniform介绍
参考https://blog.csdn.net/u013920434/article/details/52507173
## Sklearn数据预处理函数fit_transform()和transform()的区别
参考https://blog.csdn.net/quiet_girl/article/details/72517053
## Sklearn数据预处理函数StandardScaler
参考https://blog.csdn.net/wzyaiwl/article/details/90549391
## 报错 AxisError: axis 0 is out of bounds for array of dimension 0
参考https://www.cnblogs.com/WMT-Azura/p/13632440.html
## pandas报错 'Series' object has no attribute 'as_matrix'
参考https://blog.csdn.net/weixin_44550865/article/details/105785876
## pandas报错:index must be monotonic increasing or decreasing
参考https://blog.csdn.net/weixin_44149358/article/details/110874865
## pandas报错:'Series' object has no attribute 'order'
参考https://blog.csdn.net/NextAction/article/details/85097904
## pandas报错:ModuleNotFoundError: No module named 'pandas.io.data'
参考https://blog.csdn.net/qq_23347459/article/details/104966818
## sklearn:文本特征提取方法CountVectorizer
参考https://blog.csdn.net/weixin_38278334/article/details/82320307
## TF-IDF理论及Sklearn的TfidfVectorizer函数
参考http://www.ruanyifeng.com/blog/2013/03/tf-idf.html
https://blog.csdn.net/m0_37991005/article/details/105074754
## 文本向量化实战
参考https://zhuanlan.zhihu.com/p/44917421
## numpy,pandas计算均值、方差、标准差
参考https://www.shangmayuan.com/a/88af74b8434f49b0ba255fe2.html
## numpy.reshape(-1,1)
参考https://blog.csdn.net/qq_42804678/article/details/99062431
## numpy数组拼接方法
参考https://blog.csdn.net/zyl1042635242/article/details/43162031
## sklearn:predict()与predict_proba()用法区别
参考https://www.cnblogs.com/mrtop/p/10309083.html
## pandas:Timestamp object has no attribute dt
参考https://stackoverflow.com/questions/62803633/timestamp-object-has-no-attribute-dt/62815103
## jieba分词模块的基本用法
参考https://www.cnblogs.com/jiayongji/p/7119065.html
## pandas:unique()函数与nunique()函数区别
参考https://blog.csdn.net/feizxiang3/article/details/93380525
## pandas:groupby详解
参考https://zhuanlan.zhihu.com/p/101284491
## pandas:map、apply、applymap详解
参考https://zhuanlan.zhihu.com/p/100064394
## ROC曲线-阈值评价标准
参考https://blog.csdn.net/abcjennifer/article/details/7359370
## 混淆矩阵
参考https://blog.csdn.net/u011734144/article/details/80277225
## pandas:数据类型转换
参考https://blog.csdn.net/u010916338/article/details/82385618
## pandas:两列转换成字典的健和值
参考https://blog.csdn.net/mao15827639402/article/details/107832903
## pandas:删除满足条件元素所在的行
参考https://blog.csdn.net/u014636245/article/details/104202889
## pandas:判断值是否在列表中
参考https://blog.csdn.net/qq_38115310/article/details/103290582
## name 'json' is not defined
参考https://blog.csdn.net/qq_38161040/article/details/91410095
## string indices must be integers 错误原因
参考https://blog.csdn.net/weixin_43256057/article/details/83867876
## 解析时间戳并以毫秒为单位计算时间差
参考https://oomake.com/question/1192202
## time与datetime模块如何转换
参考http://www.jquerycn.cn/a_38061
## numpy中mat与array在相乘上的区别
## csv模块csv.writer().writerow()产生空行的问题
参考https://blog.csdn.net/youzhouliu/article/details/53138661
## 生成csv文件时内容中包含逗号的处理方式
参考https://blog.csdn.net/hjp1137/article/details/48656049
## pandas中Series对象下的str方法汇总
参考https://blog.csdn.net/weixin_43750377/article/details/107979607
## pandas中groupby的参数:as_index
参考https://www.cnblogs.com/zhangzhixing/p/11074416.html
## pandas报错: xlrd.biffh.XLRDError: Excel xlsx file; not supported
参考https://blog.csdn.net/weixin_44073728/article/details/111054157
## pandas报错: TypeError: read_excel() got an unexpected keyword argument `sheetname`
参考https://www.cnblogs.com/mmjing/p/11935889.html
## pandas.get_dummies的用法
参考https://blog.csdn.net/maymay_/article/details/80198468
## pandas报错:Getting TypeError: reduction operation 'argmax' not allowed for this dtype when trying to use idxmax()
参考https://stackoverflow.com/questions/48719937
## pandas报错:ImportError: No module named 'pandas.tools'
参考https://www.cnblogs.com/zhhy236400/p/11111036.html
## cursor游标讲解
参考https://blog.csdn.net/pdcfighting/article/details/104085622/
## 报错:TypeError: Object of type Decimal is not JSON serializable
参考https://blog.csdn.net/ILovePythonhao/article/details/105347755
## sklearn报错:Solver lbfgs supports only 'l2' or 'none' penalties, got l1 penalty
参考https://blog.csdn.net/qq_22592457/article/details/103504796
## sklearn报错:TypeError: 'KFold' object is not iterable
参考https://stackoverflow.com/questions/48641290
# 数据可视化
## 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
----------------------------------------------------------------------------------------------------------------