标签:sts utf-8 bin get error request ati nta code
1、不加
if __name__ == "__main__":
报错
IndentationError: unexpected indent
eg:
# -*- coding:utf-8 -*-
import requests
r = requests.get(‘http://www.cnblogs.com/harbin-charles‘)
code = r.status_code
print(code)
标签:sts utf-8 bin get error request ati nta code
原文地址:http://www.cnblogs.com/harbin-charles/p/7562932.html