python tips
2016-11-12 13:50
99 查看
1、ubuntu 上通过easy install 安装 pip
安装Easy install
$ sudo apt-get install python-setuptools python-dev build-essential
安装pip
$ sudo easy_install pip
2、在python中,decode的作用是将其他类型的编码方式转换为UTF-8类型的编码,而encode函数的作用是将UTF-8类型的编码转换为其他类型的编码
3、所有参数在python里都是按引用传递的
4、python console实现表格格式化所用的库为texttable, prettytable
5、python对excel文件进行操作,所用的库为xlrd
安装Easy install
$ sudo apt-get install python-setuptools python-dev build-essential
安装pip
$ sudo easy_install pip
2、在python中,decode的作用是将其他类型的编码方式转换为UTF-8类型的编码,而encode函数的作用是将UTF-8类型的编码转换为其他类型的编码
3、所有参数在python里都是按引用传递的
4、python console实现表格格式化所用的库为texttable, prettytable
5、python对excel文件进行操作,所用的库为xlrd
相关文章推荐
- python tips 系列 修改UNIX时区
- Jython Tips for Python Programmers
- [Python Tips]去除 Trivial 赋值语句
- PythonTips1
- Python tips: 什么是*args和**kwargs?
- [Dynamic Language] Python Tips
- some tips about python default value....
- python set tips
- python tips:导入变量不能以_打头
- Python Tips & Tricks
- Python tips: 保存Unicode字符到文本文档
- [Python Tips]去除 Trivial 赋值语句
- [Python Tips]去除 Trivial 赋值语句
- Python tips: 让Unicode变简单
- Python Tips 01 : 判断两个文件是否相同
- [tips]PythonMagick的安装
- python tips
- Python tips: 装饰方法实战:类型校验装饰器和锁同步装饰器
- python技巧31[pythonTips1]
- Python Performance Tips