インポート要求 URL1 = "http://overseas-appapi-test.5i5j.com/site/index" DATA1 = { "言語": "EN-US"} RES = requests.get(URL1、DATA1) プリント(RES。 URL) プリント(res.status_code) プリント(res.text)
ソリューション:
(automationVenv)#ナノ/ etc / hostsの[67 automationtest @ルート]
テスト結果:
これは、通常の訪問することができ
参照
分析とポジショニング:
:https://bbs.csdn.net/topics/392505040
centos7ホストと発効を設定
https://www.cnblogs.com/hujichen/p/5414785.html