![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
longxibendi
这个作者很懒,什么都没留下…
展开
-
python 操作2个list,可变,list push和append 操作的是数组地址
root@1.2.3.4# python Python 2.6.6 (r266:84292, Aug 18 2016, 15:13:37) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>...原创 2020-01-06 14:05:43 · 2908 阅读 · 0 评论 -
6 Python Performance Tips
from: http://blog.newrelic.com/2015/01/21/python-performance-tips/ Python is such a cool language because you can do so much with it in such a short time with so little code. Not only that, it su转载 2015-02-10 13:36:54 · 932 阅读 · 0 评论 -
flask+pypy+setuptools+redis+MySQLdb安装
一.问题提出 python的flask框架,简单、轻量,做web后端很实用。但是原生的python,执行效率并不高。这里不深究,感兴趣可以做性能对比测试。如果有业务需要,每秒大于 10k的并发,使用原生的python很占资源。(这也要看具体业务) 二.问题解决 python生态中,有很多解释器/编译器,能够提升python代码的执行效率。比如JPython,CPython,Pypy等。整体而言,Pypy可以直接兼容python。Pypy使用JIT技术。 (没错,类似Php 7的编译执行技术,Php 7 参原创 2016-04-27 20:34:52 · 3025 阅读 · 1 评论 -
python连mysql
一.python连mysql安装 MySQLdb wget https://pypi.python.org/packages/d3/16/21cf5dc6974280197e42d57bf7d372380562ec69aef9bb796b5e2dbbed6e/setuptools-20.10.1.tar.gz#md5=cc3f063d05e3bff4d3fa07a5a1017c3b tar z原创 2016-05-03 17:40:27 · 763 阅读 · 1 评论