摘要:
import paramiko def connect_to_server(): client = paramiko.SSHClient() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) print(' 开始连接服务器 ') 阅读全文
posted @ 2020-11-03 23:17
疯狂列表推导式
阅读(78)
评论(0)
推荐(0)
摘要:
import matplotlib.pyplot as plt x_data = ['2011', '2012', '2013', '2014', '2015', '2016', '2017'] y_data = [58000, 60200, 63000, 71000, 84000, 90500, 阅读全文
posted @ 2020-11-03 23:03
疯狂列表推导式
阅读(108)
评论(0)
推荐(0)
摘要:
from PIL import Image import pytesseract image = Image.open('demo.png') content = pytesseract.image_to_string(image, lang='chi_sim') print('demo图片中的文字 阅读全文
posted @ 2020-11-03 22:13
疯狂列表推导式
阅读(97)
评论(0)
推荐(0)
摘要:
import cv2 # 读取图片 img = cv2.imread('demo.png') # h、w为想要截取的图片大小 h, w = 35, 170 # 坐标 x, y= 500, 425 targetImg = img[(y):(y + h), (x):(x + w)] cv2.imwrit 阅读全文
posted @ 2020-11-03 22:04
疯狂列表推导式
阅读(546)
评论(0)
推荐(0)
摘要:
all_dat_str = '1213124123425' # 写入信息 with open('音频信息1111111111111', 'w') as f: print('写入信息的长度为 ', f.write(all_dat_str)) # 确认有信息 with open('音频信息1111111 阅读全文
posted @ 2020-11-03 08:06
疯狂列表推导式
阅读(131)
评论(0)
推荐(0)
摘要:
import redis def create_redis_pool(): REDIS_DB = '127.0.0.1' REDIS_PORT = 6379 pool = redis.ConnectionPool(host=REDIS_DB, port=REDIS_PORT, max_connect 阅读全文
posted @ 2020-11-03 07:52
疯狂列表推导式
阅读(445)
评论(0)
推荐(0)

浙公网安备 33010602011771号