- 博客(6)
- 收藏
- 关注
原创 django项目创建工作步骤
一,用pycham创建一个django项目之后,在下面的控制台中输入python manage.py startapp app01(应用名)创建应用 二,在setting.py注册你的应用 --------------------------------------------以上两步即可启动运行项目------------------------------------ 三,...
2019-12-26 19:49:03 140
原创 numpy模块的碎碎念
import numpy as np # a = np.array([[1, 2, 3], [4, 5, 6]]) # print(a) # .shape查看数据的形状,结果是一个元组 # print(type(a.shape)) # .reshape修改数组的形状,但返回值的数组是修改后的形状,原数组其实形状不变。如果数据不够则会报错 # b = a.reshape(3, 2) # pri...
2019-12-24 01:57:15 163
原创 matplotlib第四次记录 绘制散点图,条形图,直方图
from matplotlib import pyplot as plt from matplotlib import font_manager import random # 设置字体用来显示中文 font_list = sorted([f.name for f in font_manager.fontManager.ttflist]) for i in font_list: pri...
2019-12-19 20:03:43 176
原创 matplotlib第三次记录 绘制多条折线,添加图例,添加网格,线段风格及其颜色
from matplotlib import pyplot as plt from matplotlib import font_manager font_list = sorted([f.name for f in font_manager.fontManager.ttflist]) for i in font_list: print(i) # 设置字体显示 plt.rcParam...
2019-12-17 22:59:51 745
原创 matplotlib第二次记录 两种实用方式解决坐标轴刻度中文乱码问题;x,y轴描述信息及图像标题
from matplotlib import pyplot as plt from matplotlib import font_manager import random # 第一种设置字体,遍历系统中的字体 font_list = sorted([f.name for f in font_manager.fontManager.ttflist]) for i in font...
2019-12-17 16:08:16 504
原创 matplotlib第一次记录 设置图片大小,设置x轴,y轴刻度,保存图片
from matplotlib import pyplot as plt # 确定点的坐标 x = range(2,26,2) y = [15,13,14.5,17,20,25,26,26,27,22,18,15] # 设置图片大小 plt.figure(figsize=(20, 8), dpi=80) # 设置x轴的刻度,以2开始,24结束 间距为0.5 _xtick_label...
2019-12-17 15:54:28 450
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人