“安徽高考成绩批量查询-多种方法实现-python版本” 的相关文章
math库的使用
math库包括4个数学常数math.pi 圆周率math.e 自然对数math.inf 正无穷大,负无穷大为-math.infmath.nan 非浮点数标记math库常用函数math.cell(x) 向上取整,返回不小于x的最小整数math.facto...
for循环
range()函数range(start,end,step)range()函数返回一个可迭代对象(可理解为一个序列,序列中的数包括start,不包括end)例如range(1,101),返回1-100的序列。range(101),范围0-100的序列。range(1,100,2),返回1,3,5.....
列表作为函数参数
列表作为函数参数,函数中可以修改原列表def multiply(values,factor): for i in range(len(values)): values[i]*=factor aList=[1,2,3,4,5] multiply(aL...
Python自动清理错误图片,深度学习训练数据集准备
使用python运行from PIL import Image from pathlib import Path import os path = r'.' ...
(原创)使用Python对任意网站图片进行爬取,仅用于学习
import os import time import argparse import requests import re import io from urllib.parse import ...
(原创)使用Python递归获取网页内的所有URL,并进行清洗
import argparse import time from urllib.parse import urljoin, urlparse from selenium import webdriver...