5-17 4,345 views
阅读全文 0
FastDFS是一个开源的轻量级分布式文件系统,它对文件进行管理,功能包括:文件存储、文件同步、文件访问(文件上传、文件下载)等,解决了大容量存储和负载均衡的问题。特别适合以文件为载体的在线服务,如相册网站、视频网站等等。
"一
~ yum -y install g...
5-17 3,035 views
阅读全文 0
python3.3.2中的关键字如下:
The following identifiers are used as reserved words, or keywords of the language, and cannot be used as ordinary identifiers. They must be spelled exactly as written here:
False class finally is ...
5-15 3,600 views
python3.3.2中的关键字如下:
The following identifiers are used as reserved words, or keywords of the language, and cannot be used as ordinary ident...
mysql启动 提示
[root@localhost var]# Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/run/mysqld/mysqld.pid
120516 15:23:19 mysqld ended
/var/log/mysqld.log信息为
/usr/local/mysql//libexec/mysqld: C...
5-14 5,577 views
mysql启动 提示
[root@localhost var]# Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/run/mysqld/mysq...
@1-> 命令行下运行 wget https://bootstrap.pypa.io/get-pip.py ,没有wget的请先去安装wget
@2-> ~ python get-pip.py
@3-> ~ pip -V ,出现下图,证明安装成功!
碰到问题 zipimport.ZipImportError: can’t decompress data; zlib not avail...
5-13 9,758 views
@1-> 命令行下运行 wget https://bootstrap.pypa.io/get-pip.py ,没有wget的请先去安装wget
@2-> ~ python get-pip.py
@3-> ~ pip -V ,出现...
一
首先进入网址:https://packaging.python.org/tutorials/installing-packages/#installing-from-pypi
@1–选择 get-pip
@2–选择get-pip,右键另存为
@3–把下载好的 get-pip.py 文件放在C盘, 运行命令python c:/get-pip.py ,等一会就安装...
5-13 4,046 views
一
首先进入网址:https://packaging.python.org/tutorials/installing-packages/#installing-from-pypi
@1–选择 get-pip
@2–选择get-pip,...

乌尤尼盐沼在玻利维亚波托西省西部高原内,海拔3,656米(11,995英尺),长150公里,宽130公里,面积9,065平方公里,为世界最大的盐层覆盖的荒原,边缘有盐场。主要盐场间有公路相通。
雨量稀少,气候干燥,...
5-12 27,199 views
阅读全文 10
首字母大写(map函数)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def change(str):
return {'a':'A','b':'B','c':'C','d':'D','e':'E','f':'F','g':'G','h':'H','i':'I','j':'J','k':'K','l':'L','m':'M','n':'N','o':'O','p':'P','r':'R','s':'S','t':'T',...
5-12 3,552 views
首字母大写(map函数)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def change(str):
return {'a':'A','b':'B','c':'C','d':'D','e':'E','f':'F','g':...
import types
aaa = 0
print type(aaa)
if type(aaa) is types.IntType:
print "the type of aaa is int"
if isinstance(aaa,int):
print "the type of aaa is int"
bbb = 'hello'
print type(bbb)
if type(bbb) is types.StringType: ...
5-12 5,178 views
import types
aaa = 0
print type(aaa)
if type(aaa) is types.IntType:
print "the type of aaa is int"
if isinstance(aaa,int):
pri...
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def str2int(s):
def fn(x,y):
return x * 10 + y
def char2num(s):
return {'0': 0, '1': 1, '2': 2, '3': 3, '4': 4, '5': 5, '6': 6, '7': 7, '8': 8, '9': 9}[s]
return reduce(fn,...
5-12 4,268 views
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def str2int(s):
def fn(x,y):
return x * 10 + y
def char2num(s):
return {'0':...