12 2017 档案

摘要:地址:https://www.lfd.uci.edu/~gohlke/pythonlibs/ 安装:1、放到D:\Python\Python36-32 目录下 2、cmd 进度dos 3、切换到该目录后,pip install XXXXXX 阅读全文
posted @ 2017-12-28 14:57 王亚锋 编辑
摘要:实现从index通过链接进入到登录页面 #############Python######################### 阅读全文
posted @ 2017-12-28 14:01 王亚锋 编辑
摘要:######################################################from flask import Flask,render_templateapp = Flask(__name__)@app.route('/')def index(): pic = 'h 阅读全文
posted @ 2017-12-27 17:31 王亚锋 编辑
摘要:1、Limit SELECT * from leader LIMIT 2; 2、like通配符 略 3、in IN 操作符允许您在 WHERE 子句中规定多个值。 SELECT * from leader WHERE phone IN('19000000007','19000000008') 4、b 阅读全文
posted @ 2017-12-27 14:07 王亚锋 编辑
摘要:1、查询 selecet 语法:SELECT column_name,column_name FROM table_name; 1.1 查询某些列数据 SELECT phone,name FROM leader; 1.2 查询表中所有数据 SELECT * FROM leader; 1.3 查询去重 阅读全文
posted @ 2017-12-26 19:42 王亚锋 编辑
摘要:###########################python4############################################# 阅读全文
posted @ 2017-12-21 17:12 王亚锋 编辑
摘要:#############Python代码######################### 阅读全文
posted @ 2017-12-21 16:19 王亚锋 编辑
摘要:#############Python代码######################### ''' ''' ############index.html############################ 阅读全文
posted @ 2017-12-21 14:36 王亚锋 编辑
摘要: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 王亚锋 编辑
摘要:###############################################代码1 阅读全文
posted @ 2017-12-18 17:24 王亚锋 编辑
摘要:1.列出所有可更新的软件清单命令:yum check-update 2.更新所有软件命令:yum update 3.仅安装指定的软件命令:yum install <package_name> 4.仅更新指定的软件命令:yum update <package_name> 5.列出所有可安裝的软件清单命 阅读全文
posted @ 2017-12-11 23:14 王亚锋 编辑
摘要:shutdown 关机命令 可以使用man shutdown来查看shutdown的用法 【man 命令】 可以查看这个命令的用法/sbin/shutdown [-t sec] [-arkhncfF] time [warning-message]Shutdown –h now 立马关机Shutdow 阅读全文
posted @ 2017-12-11 22:54 王亚锋 编辑
摘要:[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 王亚锋 编辑
摘要:前提:1、re 是re的主要使用方法 2、正则表达式的编写请参考《精通正则表达式》第3版'''re.match() re.match(pattern, string, flags=0) 只匹配字符串的开始,如果字符串开始不符合正则表达式,则匹配失败,函数返回None '''import reprin 阅读全文
posted @ 2017-12-11 11:11 王亚锋 编辑
摘要: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 王亚锋 编辑
摘要:[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 王亚锋 编辑
摘要:[root@localhost pythontest]# pythonPython 3.6.2 (default, Dec 7 2017, 09:40:15) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linuxType "help", "copyrigh 阅读全文
posted @ 2017-12-07 13:47 王亚锋 编辑
摘要:# -*- coding: utf-8 -*-# @Time : 2017/12/2 0006 10:26# @Author : wangyafeng# @Email : 279949848@qq.comimport requestsdef get_key(response,*args,**kwar 阅读全文
posted @ 2017-12-06 10:44 王亚锋 编辑
摘要:# -*- coding: utf-8 -*-# @Time : 2017/12/6 0006 9:29# @Author : wangyafeng# @Email : 279949848@qq.comimport requestsdef DownLoad_Image(): ''' python版本 阅读全文
posted @ 2017-12-06 10:07 王亚锋 编辑

点击右上角即可分享
微信分享提示