合集-Mr.Wuu's missions
摘要:1 #蒙卡洛特矩中圆算概率 2 import random 3 import time 4 from tqdm import tqdm 5 6 count = 0 7 a=eval(input()) 8 random.seed(125) 9 data_iter=tqdm(range(a),unit=
阅读全文
摘要:1 #03超市抹零 2 bill=float(input("请输入商品的总价格")) 3 print("{:.0f}".format(bill)) 1 #04成绩分差和平均值 2 import math 3 4 grade1=int(input()) 5 grade2=int(input()) 6
阅读全文
摘要:请用requests库的get()函数访问如下一个网站20次,打印返回状态,text()内容,计算text()属性和content属性所返回网页内容的长度。 1 import requests 2 url="https://www.baidu.com/" 3 def getHTMLText(url)
阅读全文
posted @ 2023-12-11 08:47
Colindada
摘要:1 #Jouney To The West 2-42 2 import jieba 3 4 txt=open("Jounery to the West.txt","r",encoding='gb18030').read() 5 words=jieba.lcut(txt)#精确模式切分汉字 6 cou
阅读全文
posted @ 2023-12-18 13:21
Colindada

浙公网安备 33010602011771号