python开发_python关键字

5-15 3,216 views

python3.3.2中的关键字如下: The following identifiers are used as reserved words, or keywords of the language, and cannot be used as ordinary ident...
阅读全文 0

mysql 启动报错 /var/run/mysqld/mysqld.pid ended

5-14 5,153 views

mysql启动 提示 [root@localhost var]# Starting mysqld daemon with databases from /var/lib/mysql STOPPING server from pid file /var/run/mysqld/mysq...
阅读全文 0

Linux 下安装 python PIP

5-13 9,277 views

@1-> 命令行下运行 wget https://bootstrap.pypa.io/get-pip.py ,没有wget的请先去安装wget @2-> ~ python get-pip.py @3-> ~ pip -V ,出现...
阅读全文 0

Windows 下 python安装PIP

5-13 3,631 views

一 首先进入网址:https://packaging.python.org/tutorials/installing-packages/#installing-from-pypi @1–选择 get-pip @2–选择get-pip,...
阅读全文 0

天空之境——乌尤尼盐沼

5-12 23,864 views

       乌尤尼盐沼在玻利维亚波托西省西部高原内,海拔3,656米(11,995英尺),长150公里,宽130公里,面...
阅读全文 10

python一些常用小函数,不定时更新~

5-12 3,065 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':...
阅读全文 0

python获取变量的数据类型

5-12 4,724 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...
阅读全文 1

python字符串转换成数字int的函数

5-12 3,859 views

#!/usr/bin/env python # -*- coding: utf-8 -*- def str2int(s): def fn(x,y): return x * 10 + y def char2num(s): return {'0':...
阅读全文 0

SSH 超时断开连接

5-12 4,437 views

修改/etc/ssh/sshd_config文件,找到 ClientAliveInterval 0和ClientAliveCountMax 3并将注释符号("#")去掉, 将ClientAliveInterval对应的0改成20, ClientA...
阅读全文 1

python 打印dict的key值和value值

5-11 3,792 views

#!/usr/bin/env python # -*- coding: utf-8 -*- def p(**arr): for (a,b) in arr.items(): print a,b kw = {'city': 'Beijing', 'job': 'Engin...
阅读全文 0