Originally I wrote the code:
cookies_str = """_xmLog=xm_1574336611019_k38ndbkbce4hvk; trackType=web; Hm_lvt_4a7d8ec50cfd6af753c4f8aee3425070=1574336679; fds_otp=8015974321740343522; 1&remember_me=y; 1&_token=200259672&47B4FE5188994D0796DF6A229406E614NdV552DD58CF7B42B51A177CD08B1AEE7C327234CE3E498B499016531771F0695D4; 1_l_flag=200259672&47B4FE5188994D0796DF6A229406E614NdV552DD58CF7B42B51A177CD08B1AEE7C327234CE3E498B499016531771F0695D4_2019-11-2119:51:48; Hm_lpvt_4a7d8ec50cfd6af753c4f8aee3425070=1574337106; x_xmly_traffic=utm_source%253A%2526utm_medium%253A%2526utm_campaign%253A%2526utm_content%253A%2526utm_term%253A%2526utm_from%253A"""
cookie_dict = {i.split("=")[0]:i.split["="][1] for i in cookies_str.split("; ")}
erport an error
cookie_dict = {i.split(“=”)[0]:i.split[“=”][1] for i in cookies_str.split(“; “)}
TypeError: ‘builtin_function_or_method’ object is not subscriptable
Found to be: (“”=””) intercepted, I wrote in over good [“=”]
Generally this error.
uiltin_function_or_method’ object is not subscriptable
are caused by parentheses
Similar Posts:
- PaddlePaddle Error: ‘map’ object is not subscriptable
- java.io.IOException: Target host must not be null, or set in parameters. scheme=null, host=null, …
- The problem and solution of local storage in Safari under IOS
- ValueError: day is out of range for month [How to Solve]
- [Solved] PyTorch error: TypeError: ‘builtin_function_or_method‘ object is unsubscriptable
- python:TypeError: ‘int’ object is not subscriptable
- Flask Accessing an interface that returns a dictionary error: The view function did not return a valid response. The return type must be a string, tuple, Response instance, or WSGI callable, but it was a dict.
- WGet download Oracle JDK
- [Solved] Python Error: TypeError: ‘dict_keys’ object does not support indexing
- TypeError at /index.html/ ‘method’ object is not subscriptable