IP屬地:北京
def fun(s): d={"數(shù)字":0,"字母":0,"其他":0} for i in s: if i.isdigit(): d["數(shù)字"]+=1 elif i.isal...
爬蟲 抓取酷狗音樂排行榜作者和歌名刻恭,并寫入文件 import requests import re def page(): response=requests.get("ht...
爬蟲 抓取貓眼電影排行榜電影名字、作者敛苇、上映時(shí)間 import requests import re def page(): response=requests.get("h...
九九乘法表 for i in range(1,10): for j in range(1,i+1): print("%s*%s=%s"%(j,i,i*j),end...
快排 b=[4,7,9,2,5,1] for i in range(len(b)): for j in range(len(b)-1): if b[i]<b[j]: b[i]...
冒泡排序 a=[4,7,9,2,5,1] for i in range(len(a)): for j in range(len(a)-i-1): if a[j]<a[j+1]...