CSDN博客地址
上一页 1 2 3 4 5 6 7 8 9 10 ··· 21 下一页
摘要: 创建数组常用方式:np.arange(n) ... 阅读全文
posted @ 2020-04-23 10:32 Yi_warmth 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 使用操作命令借助subprocess模块进行... 阅读全文
posted @ 2020-04-20 19:45 Yi_warmth 阅读(456) 评论(0) 推荐(0) 编辑
摘要: 一:生成二维码 首先需要先安装MyQR模块 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ myqr 生成一张简单的二维码 import os from MyQR import myqr def test2(): myqr.run( 阅读全文
posted @ 2020-04-19 20:07 Yi_warmth 阅读(654) 评论(0) 推荐(0) 编辑
摘要: Redis非关系数据库,一种nosql数据库... 阅读全文
posted @ 2020-04-19 15:31 Yi_warmth 阅读(87) 评论(0) 推荐(0) 编辑
摘要: Matplotlib使用方法大全 一:绘制基础的折线图 1 #encoding:utf-8 2 import matplotlib.pyplot as plt 3 4 def test1(): 5 # 基础折线图绘制 6 # 绘制(0,0),(1,1),(2,1),(3,3)四个点连成的折线 7 x 阅读全文
posted @ 2020-04-18 16:26 Yi_warmth 阅读(1203) 评论(0) 推荐(0) 编辑
摘要: pandas将excel内容生成在线的html: #encoding:utf-8import pandas as pdimport codecs def test19(): xd = pd.ExcelFile('b站.xls') df = xd.parse() with codecs.open('1 阅读全文
posted @ 2020-04-16 14:49 Yi_warmth 阅读(523) 评论(0) 推荐(0) 编辑
摘要: import matplotlib.pyplot as plt import numpy as np def test4(): names = ['电影1', '电影2', '电影3'] real_num1 = [7548, 4013, 1673] real_num2 = [5453, 1840, 阅读全文
posted @ 2020-04-14 15:47 Yi_warmth 阅读(287) 评论(0) 推荐(0) 编辑
摘要: """Python多进程同步Lock、Semaphore、Event实例,Lock用来避免访问冲突、Semaphore用来控制对共享资源的访问数量、Event用来实现进程间同步通信,""" # Lock: 当多个进程需要访问共享资源的时候,Lock可以用来避免访问的冲突 import multipr 阅读全文
posted @ 2020-04-06 14:10 Yi_warmth 阅读(392) 评论(0) 推荐(0) 编辑
摘要: #encoding:utf-8 import requests from lxml import etree import xlwt import os # 爬取b站热门视频信息 def spider(): video_list = [] url = "https://www.bilibili.co 阅读全文
posted @ 2020-04-01 17:15 Yi_warmth 阅读(473) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- import requests, re import time import os import csv import sys import importlib from fake_useragent import UserAgent importli 阅读全文
posted @ 2020-03-25 20:23 Yi_warmth 阅读(814) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 21 下一页
CSDN博客地址