10 2017 档案
摘要:# -*- coding:utf-8 -*- from bs4 import BeautifulSoup as bs import re html_doc = """ The Dormouse's story试试 The Dormouse's story Once upon a time there were three little sisters; and their names we...
阅读全文
摘要:# -*- coding:utf-8 -*- from urllib.request import urlopen from bs4 import BeautifulSoup as bs import re from pymysql import cursors import pymysql #请求URL并把把结果用UTF-8编码 resp=urlopen('https://en.wikip...
阅读全文
摘要:1、首先确保引入以下两个包: 2、通过phoenix连接
阅读全文
摘要:可以把实例对象用类似函数的形式表示,进一步模糊了函数和对象之间的概念
阅读全文
摘要:1、F12打开 (1)找到需要定位的元素 (2)找到对应的html,右键 (3)有多种方法:CSSselector、xpath等 2、元素定位确认,在console中 id、tagname等可以通过documnet. cssselector: xpath定位:
阅读全文
摘要:windows 操作系统 Linux/Nuix Mac 环境 开发dev 测试环境Test integration test(IT)集成测试环境 system test(ST)系统测试环境 SIT 集成系统测试环境 SandBox 沙盒 Pre 预生产 生产;线上环境 LINUX命令区分大小写 #表
阅读全文
摘要:#coding=utf-8 import csv import pymysql.cursors #建立数据库连接,注意中文编码方式utf8 conn=pymysql.connect( host='localhost', port=13306, user='root', password='root', db='test', charset='u...
阅读全文