共 47 篇文章 |
|
2、执行命令Pyinstaller -F -w -i chengzi.ico py_word.py,执行过程特别漫长,就没有录制动图。Pyinstaller -F py_word.py 打包exePyinstaller -F -w py_word.py 不带控制台的打包Pyinstaller -F -w -i chengzi.ico py_word.py 打包指定exe图标打包。#创建虚拟环境conda create -n aotu python=3.6#激活虚拟环境conda activate aotu#Pyinstall... 阅28 转0 评0 公众公开 24-03-23 22:59 |
现在,我们稍微修改一下server.py的代码,通过Headers告诉客户端,这个数据是经过gzip压缩的:from fastapi import FastAPI, Responsefrom fastapi.responses import FileResponse.@app.get(''''''''/'''''''')def index(): resp = FileResponse('''''... 阅4 转0 评0 公众公开 24-03-19 09:57 |
def calcShpereLatLong2XY(vlon, vlat, width, height): v3x0=np.multiply(vlon, width/2/math.pi) v3y0=np.multiply(vlat, height/math.pi) v3y1=np.add(v3y0, height/2) v3x2=v3x0.astype(np.integer) v3y2=v3y1.astype(np.integer) return v3x2, v3y2. 阅39 转0 评0 公众公开 20-08-26 10:02 |
近期,浙江省信息技术课程改革方案出台,Python 确定进入浙江省信息技术高考,从2018年起浙江省信息技术教材编程语言将会从 VB 更换为Python。3、第一语言:Python不仅仅是编程入门首选语言,还是数据分析第一语言、云计算系统管理第一语言、AI的第一语言、网络攻防的第一黑客语言。4、三大主流语言之一:Python , 是一种面向对象的解释型计算... 阅1138 转1 评0 公众公开 19-01-07 16:55 |
花了24个小时整理的309道Python面试题。16.列举 Python2和Python3的区别?Python3和Python2中 int 和 long的区别?73.isinstance作用以及应用场景?简述 进程、线程、协程的区别 以及应用场景?简述 asynio模块的作用和应用场景。简述 gevent模块的作用和应用场景。python操作redis的模块?列举django orm 中所有的方法(QuerySet对象的所有方... 阅60 转0 评0 公众公开 18-12-19 00:30 |
NumPy – Python package for numerical computationSciPy – One of the core packages of the SciPy stack for signal processing, optimization and advanced statisticsmatplotlib – Popular Python library for data visualizationSymPy – Library for symbolic mathematics and algebrapandas – Python library for data manipulation... 阅32 转0 评0 公众公开 18-03-14 23:37 |
scrapy.本文链接:http://blog.csdn.net/u012150179/article/details/38091411一 scrapy-redis实现分布式爬取分析所谓的scrapy-redis实际上就是scrapy redis其中对redis的操作采用redis-py客户端。scrapy-redis已经很长时间没有更新,如何是它兼容更新版本的scrapy我在博文(链接:http://blog.csdn.net/u012150179/article/details/38087661)... 阅28 转0 评0 公众公开 17-12-03 13:28 |
def hash_value(self, value):def add_value(self, value):for term in segments(''''''''src_ip = 1.2.3.4''''''''):terms = {} # Dictionary of term to set of events.def add_event(self, event):# Add each term to the bloomfilter, and track the event by each term... 阅31 转0 评0 公众公开 17-12-03 11:40 |
动态语言的灵活性是把双刃剑:以 Python 语言为例。def routine(dct):当然,上述的代码简单到一眼就能看出问题,但在实际环境中,调用链有七八层,而且,在routine这个函数的doc里面,声明不会修改dct,该函数本身确实没有修改dct,但调用的子函数或者子函数的子函数没有遵守这个约定。python中,几乎是一切对象都可以当作布尔表达式求值,即这... 阅63 转0 评0 公众公开 17-11-26 15:11 |
从Python到GolangWhy Python。main.gopackage mainimport ( ''''''''github.com/Hevienz/go-mongo'''''''' ''''''''github.com/Hevienz/go-utils'''''''' //下文介绍 '''''''&... 阅103 转0 评0 公众公开 17-11-23 22:19 |