2018年2月2日

Python pymysql模块

摘要: import pymysql def mysql(host,port,user,pwd,database,sql,arguments=None,charset='utf8'): conn = login_mysql = { 'host':'127.0.0.1', 'port': 3306, 'user':'root', 'pwd':'123456', ... 阅读全文

posted @ 2018-02-02 17:16 运维小学生 阅读(124) 评论(0) 推荐(0) 编辑

Python-parse模块url转换

摘要: 1. 拆分url 1 from urllib.parse import urlparse 2 3 result = urlparse("http://www.baidu.com/index.html;user?id=5#comment") 4 print(result) 5 print(list(r 阅读全文

posted @ 2018-02-02 17:08 运维小学生 阅读(278) 评论(0) 推荐(0) 编辑

导航