
python
lyf5231
Work with all of you to build the world we want!
展开
-
python—利用matplotlib库画图
安装库1、我使用的是windows系统,安装完python后发现并没自动将python相关库、应用程序的目录添加到环境变量中,所以首先找到python程序安装目录,import sysprint(sys.path)找到python的安装目录后,可以将该目录添加到环境变量中,也可以cd到该目录。2、cmd下使用命令安装matplotlibpython -m pip install -U pip set原创 2017-02-21 21:29:16 · 1327 阅读 · 0 评论 -
python—android编译中build_image.py分析
最近在学习python,基础知识学习了一遍。我的学习习惯是:了解了基础语法后,去阅读开源代码(掌握优秀程序员的一些写代码习惯和手法),最后结合项目实践,实践的过程对某些细节进行深化。 想起android编译系统中有一些python脚本,下面对build_image.py进行简单分析。编译系统中调用build_image.py生成系统镜像的target在build\core\Makefile中,#-原创 2017-02-24 12:57:34 · 6167 阅读 · 0 评论 -
python函数参数收集及其反转
*<-->tuple和**<-->dict的使用分为两种情况,一种是函数调用,另外一种是函数定义。Function call*tuple means “treat the elements of this tuple as positional arguments to this function call.”def foo(x, y): print(x, y)原创 2017-07-13 13:30:20 · 697 阅读 · 0 评论 -
Python中关于XML-RPC原理
转自http://www.cnblogs.com/wanghaoran/p/3189017.htmlSimpleXMLRPCServer模块为XML-RPC服务端的写入提供了一个基本的框架。利用SimpleXMLRPCServer服务器既可以一直空闲,也可以利用CGIXMLRPCRequestHandler来嵌入到一个CGI环境中。XML-RPC(Remote Procedure Call)是通过H转载 2017-07-15 11:39:15 · 1283 阅读 · 0 评论 -
python 2.x to 3.x
As of 13 Apr 2014, from http://hg.python.org/peps/rev/76d43e52d978 (PEP 373, Python 2.7 Release Schedule): The End Of Life date (EOL, sunset date) for Python 2.7 has been moved five years into the fu原创 2017-11-20 15:38:40 · 801 阅读 · 0 评论 -
Unicode and UTF-8
UTF-8 is a character encoding capable of encoding all possible Unicode code points. The encoding is defined by the Unicode standard. wiki上介绍UTF-8是字符的编码方式,可以将Unicode的所有code points都进行编码。UTF-8 is an enco原创 2017-06-17 22:59:15 · 538 阅读 · 0 评论