python
文章平均质量分 59
Qiang__zi
...
展开
-
win10 Apach+mod_WSGI+Python3.6部署Flask服务
win10 Apach+mod_WSGI+Python3.6部署Flask服务 Apache服务部署(选择Apache2.4 VC15) 下载Apache:https://www.apachehaus.com/cgi-bin/download.plx 将下载的压缩包解压至所需目录后进行安装: (1)修改conf文件夹中httpd.conf文件中的SRVROOT: (2)修改conf文件夹中httpd.conf文件中的Listen,因为我的机器80端口被占用: (3)运行Apac.原创 2021-06-04 08:58:56 · 301 阅读 · 0 评论 -
愿你也有一个佩奇(python源码)
# coding:utf-8 import turtle as t #画鼻子 def nose(): # 配置画笔属性 t.pensize(4) t.hideturtle() t.colormode(255) t.color((255, 155, 192), "pink") t.setup(840, 500) t.speed(10) ...原创 2019-01-19 16:32:03 · 748 阅读 · 1 评论 -
python-matplotlib绘图
import matplotlib.pyplot as plt import numpy as np def figure_test(): # x轴范围 x = np.linspace(-3, 5, 50) #y轴取值范围 y = x**2-2*x-8 # 设置figur名字与大小 plt.figure(num='test', figsize=(...原创 2019-03-25 16:35:47 · 229 阅读 · 0 评论 -
python+opencv 画矩形
#-*-conding:utf-8-*- import cv2 src_img = cv2.imread('src1.jpg') img = src_img.copy() tmp = src_img.copy() def draw_rectangle(event, x, y, flags, param): global ix, iy, img, tmp if event==...原创 2019-05-12 16:38:31 · 2654 阅读 · 0 评论 -
TensorFlow读取图片tf.gfile.FastGFile
tf.gfile.FastGFile() 功能:读取图像 参数:1、图像路径;2、读取方式(‘r’为utf-8,‘rb’为非utf-8) import tensorflow as tf import matplotlib.pyplot as plt #读取图像 src_img = tf.gfile.FastGFile('lena.jpg', 'rb').read() with tf....原创 2019-06-05 09:56:32 · 2539 阅读 · 1 评论