python小知识
awishw
1024改变自己
展开
-
【python】makemigrations 错误 No changes detected(已解决)
错误:No changes detected解决方案:注释掉抽象声明。原创 2020-07-15 12:37:55 · 759 阅读 · 0 评论 -
【python】数据分析学习(投资组合)
学习视频:https://www.bilibili.com/video/BV1Pa4y1Y7pm?t=22投资组合导入所需库:import yfinance as yfimport numpy as npimport pandas as pdimport matplotlib.pyplot as pltimport seaborn as snssns.set(font='SimHei',rc={'figure.figsize':(15,9)})获取数据:tickers =原创 2020-07-30 19:20:04 · 1430 阅读 · 0 评论 -
【python】numpy模块学习(超级基础)
numpy 学习import numpy as np一些基础函数#读取txt文件txt = np.genfromtxt('test.txt',delimiter='',dtype=str,encoding='utf-8')#生成矩阵vector = np.array([5,10,23,45,2]) #一维vector = np.array([[5,10,23,45,2],[3,20,43,45,2],[5,10,43,45,2]]) #二维 vector[1][1] = 2原创 2020-07-29 21:00:01 · 189 阅读 · 0 评论 -
【python】logging模块学习02_Scrapy框架内的日志系统配置
https://www.cnblogs.com/sufei-duoduo/p/5880988.html(较多理论)https://blog.csdn.net/weixin_45459224/article/details/100142537?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.edu_weight&depth_1-utm_source=distribute.pc原创 2020-07-24 17:26:59 · 114 阅读 · 0 评论 -
【python】logging 模块学习记录01_基础学习
目录1.logging是干什么用的2.如何使用logging日志框架1)loggers2)Handlers3)Filters4) Formatters几个重要函数:logging.basicConfig函数各参数:logging.getLogger([name])logging.getLevelName(lvl)logging.shutdown()Logger.setLevel(lvl):Logger.debug(msg[,*args[, **...原创 2020-07-24 16:29:27 · 527 阅读 · 0 评论 -
Scrapy爬虫学习记录
Scrapy爬虫框架之入门篇:https://www.jianshu.com/p/b2ca839afdb2原创 2020-07-24 14:14:09 · 75 阅读 · 0 评论 -
【python】临时换源
转载 2020-07-24 14:04:04 · 806 阅读 · 0 评论