摘要:
# 1、创建链接# 2、创建游标# 3、游标执行语句# 4、链接提交到服务器# 5、游标取结果,返回数组/字典# 6、关闭游标/链接 import pymysql ####################创建数据库 try: con = pymysql.connect(host='localhost 阅读全文
posted @ 2020-03-27 10:33
我会飞︿( ̄︶ ̄)︿
阅读(216)
评论(0)
推荐(0)
摘要:
import execjs,requests node = execjs.get() js_function = "test('%s')" % pwd js_compile = node.compile(open('js.js', encoding='utf-8').read()) # 编译 js文 阅读全文
posted @ 2020-03-27 10:26
我会飞︿( ̄︶ ̄)︿
阅读(145)
评论(0)
推荐(0)
摘要:
import shutil, os #复制一个文件到另一个目录 # shutil.copy("C://Users//admin_zjj//Desktop//postman.exe", "C://Users//admin_zjj//Desktop//新建文件夹") #复制文件并重命名 shutil.c 阅读全文
posted @ 2020-03-27 10:22
我会飞︿( ̄︶ ̄)︿
阅读(317)
评论(0)
推荐(0)
摘要:
from lxml import etree tree = etree.HTML(page_text) list = tree.xpath('//title/text()') list= tree.xpath('//div[@class="spec-list"]/div/ul/li/img/@src 阅读全文
posted @ 2020-03-27 10:20
我会飞︿( ̄︶ ̄)︿
阅读(142)
评论(0)
推荐(0)
摘要:
import requests url = 'http://xxxxxxxx.com' headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko 阅读全文
posted @ 2020-03-27 10:13
我会飞︿( ̄︶ ̄)︿
阅读(114)
评论(0)
推荐(0)
摘要:
from urllib import parse a = parse.quote('123哈哈哈哈哈哈哈abc', safe='/', encoding=None, errors=None)print(a) b = parse.unquote(a, encoding='utf-8', errors= 阅读全文
posted @ 2020-03-27 10:08
我会飞︿( ̄︶ ̄)︿
阅读(125)
评论(0)
推荐(0)
该文被密码保护。 阅读全文
posted @ 2020-03-27 09:48
我会飞︿( ̄︶ ̄)︿
阅读(0)
评论(0)
推荐(0)

浙公网安备 33010602011771号