摘要:
'''傳參方式1''' def get(url): response=requests.get(url) print(response.text) get("http://www.rzrgm.cn/clairedandan/p/?page=1") '''傳參數(shù)方式2''' # def out 閱讀全文
posted @ 2024-04-16 22:05
正霜霜兒
閱讀(24)
評(píng)論(0)
推薦(0)
摘要:
問(wèn)題:在Pycharm 中報(bào)requests module 找不到 特別的地方:已經(jīng)通過(guò)“pip3 install requests” 的命令安裝過(guò)requests這個(gè)模塊,并能順利運(yùn)行,但是不能在Pycharm 中運(yùn)行 解決方案如下: 1. 找到Pycharm 中的setting設(shè)置,并打開(kāi) 2. 閱讀全文
posted @ 2024-04-16 21:54
正霜霜兒
閱讀(1099)
評(píng)論(0)
推薦(0)
摘要:
'''函數(shù)的參數(shù)實(shí)際上是實(shí)際參數(shù)傳給形式參數(shù)的過(guò)程 通用性更強(qiáng) ,可以理解為一個(gè)模版''' # def add(a,b): #a,b 是形參 # print(a+b) # add(2,3) #傳遞參數(shù) '''1. 必選參數(shù),定義了幾個(gè),就必須傳幾個(gè)''' # def funb(a,b): # res 閱讀全文
posted @ 2024-04-16 17:43
正霜霜兒
閱讀(23)
評(píng)論(0)
推薦(0)
浙公網(wǎng)安備 33010602011771號(hào)