摘要:
#!/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 阅读全文