上一页 1 ··· 70 71 72 73 74 75 76 77 78 ··· 198 下一页
摘要: import matplotlib.pyplot as plt import matplotlib as mpl # 支持中文 plt.rcParams['font.sans-serif'] = ['SimHei'] # 用来正常显示中文标签 plt.rcParams['axes.unicode_m 阅读全文
posted @ 2020-03-15 20:13 brady-wang 阅读(187) 评论(0) 推荐(0)
摘要: 一、环境描述 python 3.7 mac 10.14.5 二、问题描述 如下图所示,当使用matplotlib绘制图片的时候,所有的中文字符无法正常显示。 三、解决方法 1、下载字体ttf文件 链接:https://pan.baidu.com/s/1RLVvbIi_NpAiiycBYQRPCQ 密 阅读全文
posted @ 2020-03-15 20:08 brady-wang 阅读(463) 评论(0) 推荐(0)
摘要: import matplotlib.pyplot as plt1 import matplotlib as mpl x = range(1,11) y = [11,22,13,45,3,2,3,4,5,6] plt1.plot(x,y) plt1.show() x 和y 个数不一致就报错 Value 阅读全文
posted @ 2020-03-15 19:40 brady-wang 阅读(368) 评论(0) 推荐(0)
摘要: 三个班级平均分 import matplotlib.pyplot as plt import matplotlib as mpl classes = ['class1','class2','class3','class4'] scores = [67,79,89,50] plt.bar(classe 阅读全文
posted @ 2020-03-15 19:16 brady-wang 阅读(266) 评论(0) 推荐(0)
摘要: import matplotlib.pyplot as plt import matplotlib as mpl from matplotlib.font_manager import FontProperties font = FontProperties(fname='/System/Libra 阅读全文
posted @ 2020-03-15 19:08 brady-wang 阅读(211) 评论(0) 推荐(0)
摘要: import matplotlib.pyplot as plt import matplotlib as mpl from matplotlib.font_manager import FontProperties font = FontProperties(fname='/System/Libra 阅读全文
posted @ 2020-03-15 18:51 brady-wang 阅读(443) 评论(0) 推荐(0)
摘要: 下载minianaconda 安装 进入cmd下 conda create --name python37 python=3.7 创建python3.7环境 conda activate python37 激活刚刚的环境 conda install jupyter 安装jupyter conda i 阅读全文
posted @ 2020-03-15 18:25 brady-wang 阅读(620) 评论(0) 推荐(0)
摘要: <!-- 鼠标 --> <style type="text/css"> * { cursor: url('https://blog-static.cnblogs.com/files/ogurayui/cursor_icon.ico'), auto;}</style> 阅读全文
posted @ 2020-03-15 11:01 brady-wang 阅读(151) 评论(0) 推荐(0)
摘要: 此教程实时更新,请放心使用;如果有新版本出现猪哥都会第一时间尝试激活; pycharm官网下载地址:http://www.jetbrains.com/pycharm/download/ 激活前准备工作 配置文件修改已经不在bin目录下直接修改,而是通过pycharm修改如果输入code一直弹出来,请 阅读全文
posted @ 2020-03-15 08:31 brady-wang 阅读(757) 评论(0) 推荐(0)
摘要: import requests from lxml import etree import faker url = "https://www.yeves.cn/admin/Articles" fake = faker.Faker() headers = { "User-Agent":fake.use 阅读全文
posted @ 2020-03-14 16:50 brady-wang 阅读(1398) 评论(0) 推荐(0)
上一页 1 ··· 70 71 72 73 74 75 76 77 78 ··· 198 下一页