摘要: #############Python代码######################### 阅读全文
posted @ 2017-12-21 16:19 王亚锋 阅读(816) 评论(0) 推荐(0) 编辑
摘要: #############Python代码######################### ''' ''' ############index.html############################ 阅读全文
posted @ 2017-12-21 14:36 王亚锋 阅读(14726) 评论(1) 推荐(0) 编辑
摘要: from flask import Flask #导入Flask类 app = Flask(__name__) #生成一个web_app对象 @app.route('/') #注册一个UR了,表示当请求url+“/”时候,执行下面的函数def hello_world(): return 'Hello 阅读全文
posted @ 2017-12-21 09:48 王亚锋 阅读(437) 评论(0) 推荐(0) 编辑
摘要: ###############################################代码1 阅读全文
posted @ 2017-12-18 17:24 王亚锋 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 1.列出所有可更新的软件清单命令:yum check-update 2.更新所有软件命令:yum update 3.仅安装指定的软件命令:yum install <package_name> 4.仅更新指定的软件命令:yum update <package_name> 5.列出所有可安裝的软件清单命 阅读全文
posted @ 2017-12-11 23:14 王亚锋 阅读(179) 评论(0) 推荐(0) 编辑
摘要: shutdown 关机命令 可以使用man shutdown来查看shutdown的用法 【man 命令】 可以查看这个命令的用法/sbin/shutdown [-t sec] [-arkhncfF] time [warning-message]Shutdown –h now 立马关机Shutdow 阅读全文
posted @ 2017-12-11 22:54 王亚锋 阅读(228) 评论(0) 推荐(0) 编辑
摘要: [root@192 home]# ls -l总用量 4drwxr-xr-x. 2 root root 67 12月 11 22:33 Linux-wyfdrwxr-xr-x. 3 root root 91 12月 8 23:28 pythonstudrwxr-xr-x. 2 root root 33 阅读全文
posted @ 2017-12-11 22:48 王亚锋 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 前提:1、re 是re的主要使用方法 2、正则表达式的编写请参考《精通正则表达式》第3版'''re.match() re.match(pattern, string, flags=0) 只匹配字符串的开始,如果字符串开始不符合正则表达式,则匹配失败,函数返回None '''import reprin 阅读全文
posted @ 2017-12-11 11:11 王亚锋 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Traceback (most recent call last): File "D:/PycharmProjects/guess.py", line 24, in <module> guess_num = int(input("请输入您猜的数字"))ValueError: invalid lite 阅读全文
posted @ 2017-12-08 10:36 王亚锋 阅读(184) 评论(0) 推荐(0) 编辑
摘要: [root@localhost pythontest]# clear[root@localhost pythontest]# pythonPython 3.6.2 (default, Dec 7 2017, 09:40:15) [GCC 4.8.5 20150623 (Red Hat 4.8.5-1 阅读全文
posted @ 2017-12-07 17:31 王亚锋 阅读(233) 评论(0) 推荐(0) 编辑