摘要: #!/usr/bin/env python #coding:utf8 #Author:Felix zheng age_of_felix = 32 guess_age = input("guess age:") if guess_age == age_of_felix: print("yes,you got it.") elif guess_age > age_of_felix: ... 阅读全文
posted @ 2016-11-04 11:51 Python学习之路 阅读(186) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python #coding:utf8 #Author:Felix zheng #加密输入密码 import getpass _username = 'felix' _password = 'king111' username = input("用户名:") password = input("密码:") #password = getpass.getpass("... 阅读全文
posted @ 2016-11-04 11:50 Python学习之路 阅读(213) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python #coding:utf8 # Author:Felix zheng # 格式化输出 name = input("name:") age = int(input("age:")) # integer 转换为整型 # 查看变量类型 print(type(age)) = input("job:") salary = int(input("salary:"... 阅读全文
posted @ 2016-11-04 11:49 Python学习之路 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 启用EPEL6 yum源: 1、RHEL/CentOS/SL Linux 6.x 下安装 EPEL6 yum源: 32位系统选择:rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rp 阅读全文
posted @ 2016-10-09 16:57 Python学习之路 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 由于linux服务器允许多用户登录,工作造成一定的障碍,所以需要有时踢出指定的用户 1.用 w 命令查看信息 # wroot pts/0 2010-10-28 09:36 (192.168.1.236)root pts/1 2010-10-28 09:40 (192.168.1.27) 2.我想踢出 阅读全文
posted @ 2016-09-29 10:29 Python学习之路 阅读(4630) 评论(0) 推荐(1) 编辑
摘要: 主配置文件: 网站配置文件: 阅读全文
posted @ 2016-09-26 16:15 Python学习之路 阅读(9364) 评论(0) 推荐(0) 编辑
摘要: 1.查看软件包是否安装 [root@localhost ~]# rpm -qa|grep mail mailx-12.5-12.el7_0.x86_64 javamail-1.4.6-8.el7.noarch mailcap-2.1.41-2.el7.noarch libreport-plugin- 阅读全文
posted @ 2016-09-26 16:14 Python学习之路 阅读(2518) 评论(0) 推荐(0) 编辑
摘要: 查看防火墙状态 systemctl status firewalld.service 启动firewall systemctl stop firewalld.service 停止firewall systemctl stop firewalld.service 重新启动服务 systemctl re 阅读全文
posted @ 2016-09-26 16:00 Python学习之路 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 编译 mysql5.6.22 出现以下错误提示: — Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH) CMake Error at cmake/readline.cmake:82 (MESSAGE): Curse 阅读全文
posted @ 2016-09-26 15:55 Python学习之路 阅读(7697) 评论(0) 推荐(1) 编辑
摘要: 在dz论坛中打开了QQ互联登录功能之后提示(1054) Unknown column conuintoken in field list 错误 我们看到sql 错误就是说没有conuintoken字了,这样我们解决办法只需要增加此字段即可。 在dz论坛中打开了QQ互联登录功能之后提示(1054) U 阅读全文
posted @ 2016-09-26 15:52 Python学习之路 阅读(501) 评论(0) 推荐(0) 编辑