latest_list = latest_platform[0].to_dict()
    print(latest_list)
    for key1, value1 in latest_list.items():
        # print(key1)
        # print(value1)
        if key1 == ‘id‘:
            platform_id = value1
        if key1 == "task_category_id":
            task_category_id = value1
        if key1 == "target_image_category_id":
            target_image_category_id = value1
        if key1 == "platform_key":
            platform_key = value1
原文:https://www.cnblogs.com/unixcs/p/13294568.html