分页: 84/122 第一页 上页 79 80 81 82 83 84 85 86 87 88 下页 最后页 [ 显示模式: 摘要 | 列表 ]
引用
错误描述:
apt-setup出現"E:Dynamic MMap ran out of room"錯誤。

引用

解决方法:
vi /etc/apt/apt.conf
添加:
APT
{
Cache-Limit "141943904"
}
目的为增加cache的可用空間。
Tags:

python 编码转换 不指定

root , 2007/09/22 14:48 , Python , 评论(0) , 阅读(4902) , Via 本站原创
python常用编码转换函数:
(1)   unicode()        
         全局函数,将str字符串从其它编码(如gb2312)转换为unicode对象
(2)   str.decode()    
         str字符串的方法,将str字符串从其它编码(如gb2312)转换为unicode对象,与unicode()很相似.
(3)   str.encode()    
         str字符串的方法,
(4)  unicode.encode()
         unicode对象的方法,将unicode对象转成其它相应编码的str字符串对象,如gb2312.
(5)  unicode.decode()
         unicode对象的方法
分页: 84/122 第一页 上页 79 80 81 82 83 84 85 86 87 88 下页 最后页 [ 显示模式: 摘要 | 列表 ]