摘要:
id() -- 可以查看变量指向内存的地址 赋值为字符串,需要用 单引号 '' type() --可以查看此变量是什么类型的 Tranning: 写一个四则运算器 1.要求从键盘读取数字 2. 分清楚input() and raw_input()的区别 阅读全文
摘要:
/* 1. python 源码文件以"py"为扩展名 */ [root@localhost ~]# mkdir test1 [root@localhost ~]# cd test1/ [root@localhost test1]# vi 1.py //ADD #!/usr/bin/python print 'hello world' [root@localhost test1]# pytho... 阅读全文
摘要:
1. python安装 //先查看是否存在python的包,如果没有,那可以用yum或去python的官网安装 [root@localhost ~]# rpm -qa|grep python python-2.6.6-51.el6.i686 python-iniparse-0.3.1-2.1.el6.noarch python-urlgrabber-3.9.1-9.el6.noarch 2.... 阅读全文