发布时间:2021-08-19 17:24:03
工具类代码# coding=utf-8import randomfrom io import BytesIOfrom PIL import Image,ImageFont,ImageDrawdef GetCode(): source = 'qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890' code = "" &nbs.........【阅读全文】
发布时间:2021-08-18 17:26:08
from PIL import Image, ImageFont, ImageDraw, ImageEnhanceimport matplotlib.pyplot as pltimport numpy as npimport randomimport randomimport osdef image_rotate(image,label): """ 对图像进行一定角度的旋转 &nbs.........【阅读全文】
发布时间:2021-08-17 17:28:09
import socketimport structimport jsonimport ossc= socket.socket()sc.connect(('127.0.0.1',9997))''' 验证用户名密码的函数,验证区 '''def send_user(user,pwd):#发送用户的账户和密码 user_len = len(user.encode('utf-8')) le.........【阅读全文】
发布时间:2021-08-16 17:23:05
import torchimport torch.nn as nnimport torch.optim as optimfrom torchvision import datasets, transformsfrom torch.utils.data import DataLoader# 下载训练集train_dataset = datasets.MNIST(root='./', &n.........【阅读全文】
发布时间:2021-08-13 17:15:26
import requests,json,time,jsonpath,csv#from urllib.parse import urlencodebase_url = 'https://map.baidu.com/'headers = {#自己加咯}Name = [] #搜索结果中地市名Result = [] #包含搜索结果的数量FileName=[] #文件名(搜索时).........【阅读全文】