#先安装
#pip install requests
import requests
def no_args():
url = 'http://www.sxt.cn/'
resp = requests.get(url)
print(resp.text)
def use_args():
url = 'htttp://www.baidu.com/s'
args = {
'wd':''
}
resp = requests.get(url,params=args)
print(resp.text)
if __name__ == '__main__':
use_args()
05-18
4382
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
04-19
1279
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
02-23
1万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-13
3319
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
04-02