摘要: import requests from bs4 import BeautifulSoup #import csv import pandas as pd allUniv=[] def getHTMLText(url): try: r=requests.get(url,timeout=30) r.r 阅读全文
posted @ 2020-05-13 16:32 哦噢 阅读(155) 评论(0) 推荐(0) 编辑
摘要: def printInfo(): print("这个程序模拟两个选手A和B的羽毛球竞技比赛") print("程序需要两个选手的能力值0-1") print("规则:三局两胜--21分制") printInfo() 代码如下: 1 def printSummary(winsA,winsB): 2 3 阅读全文
posted @ 2020-05-13 16:17 哦噢 阅读(318) 评论(0) 推荐(0) 编辑
摘要: import requests from bs4 import BeautifulSoup def getHTMLText(url): try: r=requests.get(url,timeout=30) soup=BeautifulSoup(r.text) r.raise_for_status( 阅读全文
posted @ 2020-05-13 16:09 哦噢 阅读(209) 评论(0) 推荐(0) 编辑