摘要: # -*- coding: utf-8 -*-"""Created on Wed May 13 16:05:31 2020 @author: CHANYING""" import requestsfrom bs4 import BeautifulSoupallUniv=[]def get(url): 阅读全文
posted @ 2020-05-13 16:24 Chany_Tong 阅读(168) 评论(0) 推荐(0)
摘要: import requests def one(url): try: r=requests.get(url) r.raise_for_status() r.encoding='utf-8' return r.text() except: return("爬虫失败") url="https://www 阅读全文
posted @ 2020-05-13 16:06 Chany_Tong 阅读(233) 评论(0) 推荐(0)
摘要: def GameOver(N, scoreA, scoreB): ''' function: 定义一局比赛的结束条件 N: 代表当前局次(第五局为决胜局) return: 若比赛结束的条件成立返回真,否则为假 ''' if N <= 4: return (scoreA>=25 and abs(sco 阅读全文
posted @ 2020-05-13 15:42 Chany_Tong 阅读(106) 评论(0) 推荐(0)