问题遇到的现象和发生背景
import requests
r =requests.get("https://www.baidu.com")
r.status_code 报错 语句似乎无效 PEP 8: E225 missing whitespace around operator PEP 8: W292 no newline at end of file
r =requests.get("https://www.baidu.com")
r.status_code 报错 语句似乎无效 PEP 8: E225 missing whitespace around operator PEP 8: W292 no newline at end of file
在pycharm中需要输出要用print()语句。
print(r.status_code)