摘要:
#!/usr/bin/env python# -*- coding:utf-8 -*- import requestsimport jsonimport reimport urllib3from urllib.parse import urlencode,quote,unquoteurl="http 阅读全文
摘要:
#read1.html文件# <html><head><title>The Dormouse's story</title></head># <body># <p class="title"><b>The Dormouse's story</b></p>## <p class="story">Onc 阅读全文
摘要:
#!/usr/bin/env python# -*- coding:UTF-8 -*-import requestsfrom bs4 import BeautifulSoupres=requests.get("https://www.cnblogs.com/NiceTime/")# c=res.co 阅读全文
摘要:
#!/usr/bin/env python# -*- coding:UTF-8 -*- import requestsfrom selenium import webdriverfrom bs4 import BeautifulSoupimport reimport timeclass GetFan 阅读全文
摘要:
#!/usr/bin/env python# -*- coding:UTF-8 -*-import logging, time, os# 这个是日志保存本地的路径log_path = "D:\\ideaSpace\\autoProject\\autotest\\nicetime"class Log: 阅读全文
摘要:
#!/usr/bin/env python# -*- coding:UTF-8 -*- import requestsfrom bs4 import BeautifulSoupfrom bs4 import NavigableStringimport osimport requestsimport 阅读全文
摘要:
#!/usr/bin/env python# -*- coding:UTF-8 -*- import requestsfrom bs4 import BeautifulSoupfrom bs4 import NavigableStringimport osimport requestsimport 阅读全文
摘要:
#!/usr/bin/env python# -*- coding:UTF-8 -*- import osimport smtplibfrom email.header import Headerfrom email.mime.text import MIMETextfrom email.mime. 阅读全文
摘要:
# -*- coding:utf-8 -*-import smtplibfrom email.header import Headerfrom email.mime.text import MIMETextfrom email.mime.multipart import MIMEMultipart# 阅读全文
摘要:
#!/usr/bin/env python# -*- coding:UTF-8 -*- import pymysql# import os'''封装查询单条、多条数据'''# os.environ['NLS_LANG'] = 'SIMPLIFIED CHINESE_CHINA.UTF8'pdbinf 阅读全文
摘要:
#!/usr/bin/env python# -*- coding:UTF-8 -*-import requestsfrom bs4 import BeautifulSoupfrom bs4 import NavigableStringimport osimport xlrdimport pymys 阅读全文
摘要:
str = 'Runoob'# 输出字符串print(str)# 输出第一个到倒数第二个的所有字符print(str[0:-1])# 输出字符串第一个字符print(str[0])# 输出从第三个开始到第五个的字符print(str[2:5])# 输出从第三个开始的后的所有字符print(str[2 阅读全文