Content-Type請求頭的作用,用於標記請求體數據的格式,如:
1. Content-Type:application/x-www-form-urlencoded
請求體:b'pwd=123&user=root'
2. Content-Type:application/json
請求體:{"pwd": 123, "user": "root"}
Content-Type請求頭的作用,用於標記請求體數據的格式,如:
1. Content-Type:application/x-www-form-urlencoded
請求體:b'pwd=123&user=root'
2. Content-Type:application/json
請求體:{"pwd": 123, "user": "root"}
def ADD(a): print(3,a,hex(id(a))) a.remove(2) print(3,a,hex(id(a))) a=a.append(10)