摘要:
import requests from bs4 import BeautifulSoup from datetime import datetime url = "http://news.gzcc.cn/html/xiaoyuanxinwen/" res = requests.get(url) r 阅读全文
摘要:
f = open('C:\\Users\\Administrator\\Desktop\\s.txt', 'r', encoding='utf 8') a = f.read() d = {} h = '''.'!?:,''' danci = ['the', 'and', 'a'] for j in 阅读全文
摘要:
1.字符串 a = 'examples' print(a) for i in a: print(i) 2.列表 s = 'this is a string examples' ls = s.split() print(ls) for i in ls: print(i) 3.元组 tup = ('Na 阅读全文