2018-09-03 Day11-作業

最下方附上data.json文件內容

  1. 提取data.json中的數據,將每條數據中的name、text、love和comment信息。并且保存到另外一個json文件中
import json
with open('./data.json','r',encoding='utf-8') as f:
    content = json.load(f)
name, text, love, comment = [],[],[],[]
for index in range(len(content['data'])):
    name.append(content['data'][index]['name'])
    text.append(content['data'][index]['text'])
    love.append(content['data'][index]['love'])
    comment.append(content['data'][index]['comment'])
info = {'name':name,'text':text,'love':love,'comment':comment}
with open('./info.json','w',encoding='utf-8') as f1:
    json.dump(info,f1)

#文件內容太多了,不再這里展示了
  1. 統計data.json中comment數量超過1000的個數并且
import json
count = 0
with open('./data.json','r',encoding='utf-8') as f:
    content = json.load(f)
len1 = len(content['data'])
for index in range(len1):
    if int(content['data'][index]['comment']) > 1000:
        count += 1
print(count)


結果:
0
  1. 將data.json文件中所有點贊數(love)對應的值超出1000的用k來表示,例如1000修改為1k, 1345修改為1.3k
import json
with open('./data.json','r',encoding='utf-8') as f:
    content = json.load(f)
for index in range(len(content['data'])):
    str1 = (str(int(content['data'][index]['love']) / 1000)+'k')
    content['data'][index]['love'] = str1
with open('./data.json','w',encoding='utf-8') as f1:
    content1 = json.dump(content,f1)

#文件內容太多了,不再這里展示了
  1. 寫猜數字游戲,如果輸入有誤,提示重新輸入,直達輸入正確為止。比如:輸入數字的時候沒有按要求輸入,提示重新輸入
import random
while True:
    n = random.randint(1,100)
    try:
        n1 = int(input('輸入你想猜的答案:'))
    except ValueError:
        print('輸入錯誤!請重新輸入!')
        continue
    if n1 < n:
        print('小了小了。。。')
        continue
    elif n1 > n:
        print('大了大了。。。')
        continue
    elif n1 == n:
        print('恭喜你答對了!')
        break
  1. 寫學生管理系統的添加學生功能(數據需要本地化),要求除了保存學生的基本信息以外還要保存學生的學號,但是學號需要自動生成,生成原則:
    添加第一個學生對應的學號是:py001
    第二次添加的學生的學號是:py002
    ...
    如果前面的學生因為各種原因被移除了,那后面添加學生的時候原則不變,就是比如上次已經添加到py012,那么前面不管有沒有刪除情況,再次添加學生的學號是py013
import json

id = 0
student_dict = {'id':id,'dict1':[]}
try:
    with open('./stu_info.json','r',encoding='utf-8') as f1:
        content = json.load(f1)
        student_dict = content
        id = int(content['id'])
except:
    print('文件不存在!請先添加!')
while True:
    name = input('請輸入你要添加的學生姓名:')
    id += 1
    num = 'py'+'%03d'%id
    age = input('請輸入你要添加的年齡:')
    print('學號自動生成為:py%03d'%id)
    print('添加成功!')
    student_info = {'name': name, 'id': num, 'age': age}
    student_dict['dict1'].append(student_info)
    student_dict['id'] = id
    n = input('輸入“y”繼續添加,“n”停止添加:')
    if n == 'y':
        continue
    elif n =='n':
        break
    else:
        print('輸入錯誤!默認停止添加!')
        break
with open('./stu_info.json','w',encoding='utf-8') as f2:
    json.dump(student_dict,f2)


data.json內容如下:

{
    "code": 200,
    "data": [
        {
            "bimageuri": "",
            "bookmark": "12",
            "cache_version": 2,
            "cai": "57",
            "cdn_img": "http://wimg.spriteapp.cn/ugc/2018/06/11/5b1d9b15aeb0b_1.jpg",
            "comment": "84",
            "create_time": null,
            "created_at": "2018-06-12 06:24:01",
            "ding": "557",
            "favourite": "12",
            "hate": "57",
            "height": "876",
            "image_small": null,
            "image0": "http://wimg.spriteapp.cn/ugc/2018/06/11/5b1d9b15aeb0b_1.jpg",
            "image1": "http://wimg.spriteapp.cn/ugc/2018/06/11/5b1d9b15aeb0b_1.jpg",
            "image2": "http://wimg.spriteapp.cn/ugc/2018/06/11/5b1d9b15aeb0b_1.jpg",
            "is_gif": false,
            "love": "557",
            "name": "龘靐龗齾齉爩虌麷灩韊",
            "original_pid": "0",
            "passtime": "2018-06-12 06:24:01",
            "playcount": null,
            "playfcount": null,
            "profile_image": "http://wimg.spriteapp.cn/profile/large/2016/10/07/57f7b339ed872_mini.jpg",
            "repost": "23",
            "screen_name": "龘靐龗齾齉爩虌麷灩韊",
            "status": "4",
            "t": 1528755841,
            "tag": "",
            "text": "閑來無事看看直播,點開個漂亮小姐姐……我特么………… ???",
            "theme_id": "58240",
            "theme_name": "搞笑圖片",
            "theme_type": "1",
            "themes": null,
            "top_cmt": null,
            "type": "10",
            "user_id": "13943553",
            "videotime": 0,
            "videouri": "",
            "voicelength": null,
            "voicetime": null,
            "voiceuri": null,
            "weixin_url": null,
            "width": "440"
        },
        {
            "bimageuri": "",
            "bookmark": "3",
            "cache_version": 2,
            "cai": "31",
            "cdn_img": "http://wimg.spriteapp.cn/ugc/2018/08/06/5b67bdb075417_1.jpg",
            "comment": "134",
            "create_time": null,
            "created_at": "2018-08-07 07:12:02",
            "ding": "242",
            "favourite": "3",
            "hate": "31",
            "height": "333",
            "image_small": null,
            "image0": "http://wimg.spriteapp.cn/ugc/2018/08/06/5b67bdb075417_1.jpg",
            "image1": "http://wimg.spriteapp.cn/ugc/2018/08/06/5b67bdb075417_1.jpg",
            "image2": "http://wimg.spriteapp.cn/ugc/2018/08/06/5b67bdb075417_1.jpg",
            "is_gif": false,
            "love": "242",
            "name": "一葉珈藍",
            "original_pid": "0",
            "passtime": "2018-08-07 07:12:02",
            "playcount": null,
            "playfcount": null,
            "profile_image": "http://wimg.spriteapp.cn/profile/large/2018/07/29/5b5d8d37ebac4_mini.jpg",
            "repost": "2",
            "screen_name": "一葉珈藍",
            "status": "4",
            "t": 1533597122,
            "tag": "",
            "text": "你的房子失火了,你只能選擇一樣東西,你會救什么?",
            "theme_id": "44289",
            "theme_name": "互動區",
            "theme_type": "1",
            "themes": null,
            "top_cmt": null,
            "type": "10",
            "user_id": "22675409",
            "videotime": 0,
            "videouri": "",
            "voicelength": null,
            "voicetime": null,
            "voiceuri": null,
            "weixin_url": null,
            "width": "671"
        },
        {
            "bimageuri": "http://wimg.spriteapp.cn/picture/2018/0806/65c7599c-9904-11e8-a53c-0026b938a8ac_wpd.jpg",
            "bookmark": "2",
            "cache_version": 2,
            "cai": "26",
            "cdn_img": "http://wimg.spriteapp.cn/picture/2018/0806/65c7599c-9904-11e8-a53c-0026b938a8ac_wpd.jpg",
            "comment": "152",
            "create_time": null,
            "created_at": "2018-08-07 09:40:02",
            "ding": "301",
            "favourite": "2",
            "hate": "26",
            "height": "844",
            "image_small": "http://wimg.spriteapp.cn/picture/2018/0806/65c7599c-9904-11e8-a53c-0026b938a8ac_wpd.jpg",
            "image0": "http://wimg.spriteapp.cn/picture/2018/0806/65c7599c-9904-11e8-a53c-0026b938a8ac_wpd.jpg",
            "image1": "http://wimg.spriteapp.cn/picture/2018/0806/65c7599c-9904-11e8-a53c-0026b938a8ac_wpd.jpg",
            "image2": "http://wimg.spriteapp.cn/picture/2018/0806/65c7599c-9904-11e8-a53c-0026b938a8ac_wpd.jpg",
            "is_gif": false,
            "love": "301",
            "name": "逍遙幫主阿紫",
            "original_pid": "0",
            "passtime": "2018-08-07 09:40:02",
            "playcount": "32559",
            "playfcount": "10447",
            "profile_image": "http://wimg.spriteapp.cn/profile/large/2018/07/20/5b51756073006_mini.jpg",
            "repost": "8",
            "screen_name": "逍遙幫主阿紫",
            "status": "4",
            "t": 1533606002,
            "tag": "",
            "text": "遇到這種情況,你會怎么辦?",
            "theme_id": "55163",
            "theme_name": "主版塊",
            "theme_type": "1",
            "themes": null,
            "top_cmt": null,
            "type": "41",
            "user_id": "22714206",
            "videotime": 15,
            "videouri": "http://wvideo.spriteapp.cn/video/2018/0806/65c7599c-9904-11e8-a53c-0026b938a8ac_wpd.mp4",
            "voicelength": null,
            "voicetime": null,
            "voiceuri": null,
            "weixin_url": null,
            "width": "480"
        },
        {
            "bimageuri": "http://wimg.spriteapp.cn/picture/2018/0423/27706874_491.jpg",
            "bookmark": "178",
            "cache_version": 2,
            "cai": "7",
            "cdn_img": "http://wimg.spriteapp.cn/picture/2018/0423/27706874_491.jpg",
            "comment": "32",
            "create_time": null,
            "created_at": "2018-04-26 14:39:02",
            "ding": "277",
            "favourite": "178",
            "hate": "7",
            "height": "480",
            "image_small": "http://wimg.spriteapp.cn/picture/2018/0423/27706874_491.jpg",
            "image0": "http://wimg.spriteapp.cn/picture/2018/0423/27706874_491.jpg",
            "image1": "http://wimg.spriteapp.cn/picture/2018/0423/27706874_491.jpg",
            "image2": "http://wimg.spriteapp.cn/picture/2018/0423/27706874_491.jpg",
            "is_gif": false,
            "love": "277",
            "name": "拽拽快樂視頻",
            "original_pid": "0",
            "passtime": "2018-04-26 14:39:02",
            "playcount": "4691",
            "playfcount": "123",
            "profile_image": "http://wimg.spriteapp.cn/profile/large/2017/10/10/59dca3c409d5d_mini.jpg",
            "repost": "78",
            "screen_name": "拽拽快樂視頻",
            "status": "4",
            "t": 1524724742,
            "tag": "",
            "text": "一組超贊的肩頸按摩教程!上班上學總是久坐,經常會感到肩膀酸疼、頸椎僵硬。這組小動作,可以幫你緩解肩頸疼痛,保護肩頸健康,遠離頸椎病!轉存!",
            "theme_id": "747",
            "theme_name": "健康養生",
            "theme_type": "1",
            "themes": null,
            "top_cmt": null,
            "type": "41",
            "user_id": "21161412",
            "videotime": 125,
            "videouri": "http://wvideo.spriteapp.cn/video/2018/0423/eabae7ca-46db-11e8-9e8e-1866daeb0df1_wpd.mp4",
            "voicelength": null,
            "voicetime": null,
            "voiceuri": null,
            "weixin_url": null,
            "width": "480"
        },
        {
            "bimageuri": "",
            "bookmark": "14",
            "cache_version": 2,
            "cai": "289",
            "cdn_img": "http://wimg.spriteapp.cn/ugc/2017/09/05/59aea3d8a5e87_1.jpg",
            "comment": "488",
            "create_time": null,
            "created_at": "2017-09-06 16:46:01",
            "ding": "1043",
            "favourite": "14",
            "hate": "289",
            "height": "5691",
            "image_small": null,
            "image0": "http://wimg.spriteapp.cn/ugc/2017/09/05/59aea3d8a5e87_1.jpg",
            "image1": "http://wimg.spriteapp.cn/ugc/2017/09/05/59aea3d8a5e87_1.jpg",
            "image2": "http://wimg.spriteapp.cn/ugc/2017/09/05/59aea3d8a5e87_1.jpg",
            "is_gif": false,
            "love": "1043",
            "name": "為你改變love",
            "original_pid": "0",
            "passtime": "2017-09-06 16:46:01",
            "playcount": null,
            "playfcount": null,
            "profile_image": "http://wimg.spriteapp.cn/profile/large/2016/11/15/582b24d33dd0b_mini.jpg",
            "repost": "16",
            "screen_name": "為你改變love",
            "status": "4",
            "t": 1504687561,
            "tag": "",
            "text": "粉絲為趙麗穎連續簽到405天,卻因男友生日斷簽,憤怒與男友分手!",
            "theme_id": "1381",
            "theme_name": "娛樂八卦",
            "theme_type": "1",
            "themes": null,
            "top_cmt": null,
            "type": "10",
            "user_id": "18996959",
            "videotime": 0,
            "videouri": "",
            "voicelength": null,
            "voicetime": null,
            "voiceuri": null,
            "weixin_url": null,
            "width": "576"
        },
        {
            "bimageuri": "http://wimg.spriteapp.cn/picture/2017/1011/59dcfa0fc2b31__b_39.jpg",
            "bookmark": "2213",
            "cache_version": 2,
            "cai": "63",
            "cdn_img": "http://wimg.spriteapp.cn/picture/2017/1011/59dcfa0fc2b31__b_39.jpg",
            "comment": "103",
            "create_time": null,
            "created_at": "2017-10-12 14:43:02",
            "ding": "3390",
            "favourite": "2213",
            "hate": "63",
            "height": "600",
            "image_small": "http://wimg.spriteapp.cn/picture/2017/1011/59dcfa0fc2b31__b_39.jpg",
            "image0": "http://wimg.spriteapp.cn/picture/2017/1011/59dcfa0fc2b31__b_39.jpg",
            "image1": "http://wimg.spriteapp.cn/picture/2017/1011/59dcfa0fc2b31__b_39.jpg",
            "image2": "http://wimg.spriteapp.cn/picture/2017/1011/59dcfa0fc2b31__b_39.jpg",
            "is_gif": false,
            "love": "3390",
            "name": "吐嚎Video",
            "original_pid": "0",
            "passtime": "2017-10-12 14:43:02",
            "playcount": "38631",
            "playfcount": "1909",
            "profile_image": "http://wimg.spriteapp.cn/profile/large/2017/08/12/598f1e1119252_mini.jpg",
            "repost": "1467",
            "screen_name": "吐嚎Video",
            "status": "4",
            "t": 1507790582,
            "tag": "",
            "text": "1套按摩操,專治頸椎病,治1個好1個,頸椎不好的快存!",
            "theme_id": "58773",
            "theme_name": "安全與健康",
            "theme_type": "1",
            "themes": null,
            "top_cmt": null,
            "type": "41",
            "user_id": "19414702",
            "videotime": 213,
            "videouri": "http://wvideo.spriteapp.cn/video/2017/1011/59dcfa10159ec_wpd.mp4",
            "voicelength": null,
            "voicetime": null,
            "voiceuri": null,
            "weixin_url": null,
            "width": "1066"
        },
        {
            "bimageuri": "",
            "bookmark": "10",
            "cache_version": 2,
            "cai": "32",
            "cdn_img": "http://wimg.spriteapp.cn/ugc/2018/06/18/5b27cf614f34e_1.jpg",
            "comment": "71",
            "create_time": null,
            "created_at": "2018-06-19 22:36:02",
            "ding": "266",
            "favourite": "10",
            "hate": "32",
            "height": "4348",
            "image_small": null,
            "image0": "http://wimg.spriteapp.cn/ugc/2018/06/18/5b27cf614f34e_1.jpg",
            "image1": "http://wimg.spriteapp.cn/ugc/2018/06/18/5b27cf614f34e_1.jpg",
            "image2": "http://wimg.spriteapp.cn/ugc/2018/06/18/5b27cf614f34e_1.jpg",
            "is_gif": false,
            "love": "266",
            "name": "黑皮呲呲水",
            "original_pid": "0",
            "passtime": "2018-06-19 22:36:02",
            "playcount": null,
            "playfcount": null,
            "profile_image": "http://wimg.spriteapp.cn/profile/large/2018/05/06/5aeeaafd46093_mini.jpg",
            "repost": "9",
            "screen_name": "黑皮呲呲水",
            "status": "4",
            "t": 1529418962,
            "tag": "",
            "text": "挑西瓜速成秘籍",
            "theme_id": "58240",
            "theme_name": "搞笑圖片",
            "theme_type": "1",
            "themes": null,
            "top_cmt": null,
            "type": "10",
            "user_id": "20208094",
            "videotime": 0,
            "videouri": "",
            "voicelength": null,
            "voicetime": null,
            "voiceuri": null,
            "weixin_url": null,
            "width": "499"
        },
        {
            "bimageuri": "http://wimg.spriteapp.cn/picture/2018/0523/27984331_418.jpg",
            "bookmark": "316",
            "cache_version": 2,
            "cai": "34",
            "cdn_img": "http://wimg.spriteapp.cn/picture/2018/0523/27984331_418.jpg",
            "comment": "79",
            "create_time": null,
            "created_at": "2018-06-03 12:50:03",
            "ding": "714",
            "favourite": "316",
            "hate": "34",
            "height": "360",
            "image_small": "http://wimg.spriteapp.cn/picture/2018/0523/27984331_418.jpg",
            "image0": "http://wimg.spriteapp.cn/picture/2018/0523/27984331_418.jpg",
            "image1": "http://wimg.spriteapp.cn/picture/2018/0523/27984331_418.jpg",
            "image2": "http://wimg.spriteapp.cn/picture/2018/0523/27984331_418.jpg",
            "is_gif": false,
            "love": "714",
            "name": "斜眼看你笑",
            "original_pid": "0",
            "passtime": "2018-06-03 12:50:03",
            "playcount": "26476",
            "playfcount": "2834",
            "profile_image": "http://wimg.spriteapp.cn/profile/20170512104036.jpg",
            "repost": "49",
            "screen_name": "斜眼看你笑",
            "status": "4",
            "t": 1528001403,
            "tag": "",
            "text": "全程都是梗啊,郭德綱和于謙的搞笑相聲《戀愛進行曲》,肚子笑的都疼了",
            "theme_id": "0",
            "theme_name": "",
            "theme_type": "0",
            "themes": null,
            "top_cmt": null,
            "type": "41",
            "user_id": "20746603",
            "videotime": 904,
            "videouri": "http://wvideo.spriteapp.cn/video/2018/0523/a22085fe5e5711e89b0a842b2b4c75ab_wpd.mp4",
            "voicelength": null,
            "voicetime": null,
            "voiceuri": null,
            "weixin_url": null,
            "width": "640"
        },
        {
            "bimageuri": "",
            "bookmark": "0",
            "cache_version": 2,
            "cai": "12",
            "cdn_img": null,
            "comment": "17",
            "create_time": null,
            "created_at": "2018-04-09 09:11:49",
            "ding": "130",
            "favourite": "0",
            "hate": "12",
            "height": "0",
            "image_small": null,
            "image0": null,
            "image1": null,
            "image2": null,
            "is_gif": null,
            "love": "130",
            "name": "別敷衍_涐",
            "original_pid": "0",
            "passtime": "2018-04-09 09:11:49",
            "playcount": null,
            "playfcount": null,
            "profile_image": "http://wimg.spriteapp.cn/profile/large/2016/10/21/5809b87b20383_mini.jpg",
            "repost": "1",
            "screen_name": "別敷衍_涐",
            "status": "4",
            "t": 1523236309,
            "tag": "",
            "text": "男,身高182,95年的。有房,每個月有房貸,有車。人長的還算行,不丑也不帥的那種,月收入一萬。工作原因,很少接觸女孩子,所以單到現在。想找個男朋友,一起過日子的那種!",
            "theme_id": "10745",
            "theme_name": "搞笑段子",
            "theme_type": "1",
            "themes": null,
            "top_cmt": null,
            "type": "29",
            "user_id": "19535993",
            "videotime": 0,
            "videouri": "",
            "voicelength": null,
            "voicetime": null,
            "voiceuri": null,
            "weixin_url": null,
            "width": "0"
        },
        {
            "bimageuri": "http://wimg.spriteapp.cn/picture/2017/1002/59d1fd9211413__b.jpg",
            "bookmark": "127",
            "cache_version": 2,
            "cai": "61",
            "cdn_img": "http://wimg.spriteapp.cn/picture/2017/1002/59d1fd9211413__b.jpg",
            "comment": "92",
            "create_time": null,
            "created_at": "2017-10-09 14:15:01",
            "ding": "1732",
            "favourite": "127",
            "hate": "61",
            "height": "854",
            "image_small": "http://wimg.spriteapp.cn/picture/2017/1002/59d1fd9211413__b.jpg",
            "image0": "http://wimg.spriteapp.cn/picture/2017/1002/59d1fd9211413__b.jpg",
            "image1": "http://wimg.spriteapp.cn/picture/2017/1002/59d1fd9211413__b.jpg",
            "image2": "http://wimg.spriteapp.cn/picture/2017/1002/59d1fd9211413__b.jpg",
            "is_gif": false,
            "love": "1732",
            "name": "我愛你小酒窩~",
            "original_pid": "0",
            "passtime": "2017-10-09 14:15:01",
            "playcount": "112971",
            "playfcount": "11221",
            "profile_image": "http://wimg.spriteapp.cn/profile/large/2017/03/25/58d62c488484f_mini.jpg",
            "repost": "332",
            "screen_name": "我愛你小酒窩~",
            "status": "4",
            "t": 1507529701,
            "tag": "",
            "text": "假期過后上班時的你,簡直一摸一樣!",
            "theme_id": "0",
            "theme_name": "",
            "theme_type": "0",
            "themes": null,
            "top_cmt": null,
            "type": "41",
            "user_id": "20005106",
            "videotime": 25,
            "videouri": "http://wvideo.spriteapp.cn/video/2017/1002/59d1fd922d0ea_wpd.mp4",
            "voicelength": null,
            "voicetime": null,
            "voiceuri": null,
            "weixin_url": null,
            "width": "480"
        },
        {
            "bimageuri": "",
            "bookmark": "18",
            "cache_version": 2,
            "cai": "28",
            "cdn_img": "http://wimg.spriteapp.cn/ugc/2018/08/05/5b65d25dcf7d7.gif",
            "comment": "71",
            "create_time": null,
            "created_at": "2018-08-05 09:42:01",
            "ding": "358",
            "favourite": "18",
            "hate": "28",
            "height": "223",
            "image_small": null,
            "image0": "http://wimg.spriteapp.cn/ugc/2018/08/05/5b65d25dcf7d7.gif",
            "image1": "http://wimg.spriteapp.cn/ugc/2018/08/05/5b65d25dcf7d7.gif",
            "image2": "http://wimg.spriteapp.cn/ugc/2018/08/05/5b65d25dcf7d7.gif",
            "is_gif": false,
            "love": "358",
            "name": "魯尼古拉斯",
            "original_pid": "0",
            "passtime": "2018-08-05 09:42:01",
            "playcount": null,
            "playfcount": null,
            "profile_image": "http://wimg.spriteapp.cn/profile/large/2017/06/17/59451ec71ac4a_mini.jpg",
            "repost": "12",
            "screen_name": "魯尼古拉斯",
            "status": "4",
            "t": 1533433321,
            "tag": "",
            "text": "這么漂亮的眼睛見過沒有?仿佛看到兩顆璀璨的星辰",
            "theme_id": "56910",
            "theme_name": "一大波萌娃",
            "theme_type": "1",
            "themes": null,
            "top_cmt": null,
            "type": "10",
            "user_id": "20763203",
            "videotime": 0,
            "videouri": "",
            "voicelength": null,
            "voicetime": null,
            "voiceuri": null,
            "weixin_url": null,
            "width": "227"
        },
        {
            "bimageuri": "http://wimg.spriteapp.cn/picture/2018/0518/24e4371c-5a87-11e8-a83c-1866daeb0df1_wpd.jpg",
            "bookmark": "38",
            "cache_version": 2,
            "cai": "8",
            "cdn_img": "http://wimg.spriteapp.cn/picture/2018/0518/24e4371c-5a87-11e8-a83c-1866daeb0df1_wpd.jpg",
            "comment": "3",
            "create_time": null,
            "created_at": "2018-05-20 09:09:01",
            "ding": "105",
            "favourite": "38",
            "hate": "8",
            "height": "1280",
            "image_small": "http://wimg.spriteapp.cn/picture/2018/0518/24e4371c-5a87-11e8-a83c-1866daeb0df1_wpd.jpg",
            "image0": "http://wimg.spriteapp.cn/picture/2018/0518/24e4371c-5a87-11e8-a83c-1866daeb0df1_wpd.jpg",
            "image1": "http://wimg.spriteapp.cn/picture/2018/0518/24e4371c-5a87-11e8-a83c-1866daeb0df1_wpd.jpg",
            "image2": "http://wimg.spriteapp.cn/picture/2018/0518/24e4371c-5a87-11e8-a83c-1866daeb0df1_wpd.jpg",
            "is_gif": false,
            "love": "105",
            "name": "內涵神評濕",
            "original_pid": "0",
            "passtime": "2018-05-20 09:09:01",
            "playcount": "2476",
            "playfcount": "85",
            "profile_image": "http://wimg.spriteapp.cn/profile/large/2018/04/21/5adaa0fba68f9_mini.jpg",
            "repost": "12",
            "screen_name": "內涵神評濕",
            "status": "4",
            "t": 1526778541,
            "tag": "",
            "text": "排骨切塊,洗凈,冷水加蔥姜料酒焯水,打去浮沫,小火20分鐘,沖洗干凈,控干水分,拍淀粉,七成油溫炸制金黃備用。      鍋燒少許油,半勺糖,半勺醋,適量鹽,半勺番茄醬,熬制粘稠,少量勾芡,下入排骨翻炒均勻,撒芝麻,完成。",
            "theme_id": "123",
            "theme_name": "美食頻道",
            "theme_type": "1",
            "themes": null,
            "top_cmt": null,
            "type": "41",
            "user_id": "22368727",
            "videotime": 53,
            "videouri": "http://wvideo.spriteapp.cn/video/2018/0518/24e4371c-5a87-11e8-a83c-1866daeb0df1_wpd.mp4",
            "voicelength": null,
            "voicetime": null,
            "voiceuri": null,
            "weixin_url": null,
            "width": "720"
        },
        {
            "bimageuri": "",
            "bookmark": "71",
            "cache_version": 2,
            "cai": "42",
            "cdn_img": "http://wimg.spriteapp.cn/ugc/2018/03/18/5aadbc4f4d4f2.gif",
            "comment": "139",
            "create_time": null,
            "created_at": "2018-03-19 15:04:01",
            "ding": "943",
            "favourite": "71",
            "hate": "42",
            "height": "267",
            "image_small": null,
            "image0": "http://wimg.spriteapp.cn/ugc/2018/03/18/5aadbc4f4d4f2.gif",
            "image1": "http://wimg.spriteapp.cn/ugc/2018/03/18/5aadbc4f4d4f2.gif",
            "image2": "http://wimg.spriteapp.cn/ugc/2018/03/18/5aadbc4f4d4f2.gif",
            "is_gif": false,
            "love": "943",
            "name": "搞笑內涵俠",
            "original_pid": "0",
            "passtime": "2018-03-19 15:04:01",
            "playcount": null,
            "playfcount": null,
            "profile_image": "http://wimg.spriteapp.cn/profile/large/2017/03/01/58b6ed2126d85_mini.jpg",
            "repost": "124",
            "screen_name": "搞笑內涵俠",
            "status": "4",
            "t": 1521443041,
            "tag": "",
            "text": "割完蛋蛋,一臉生無可戀的表情,好可憐啊",
            "theme_id": "0",
            "theme_name": "",
            "theme_type": "0",
            "themes": null,
            "top_cmt": null,
            "type": "10",
            "user_id": "19064947",
            "videotime": 0,
            "videouri": "",
            "voicelength": null,
            "voicetime": null,
            "voiceuri": null,
            "weixin_url": null,
            "width": "182"
        },
        {
            "bimageuri": "http://wimg.spriteapp.cn/picture/2018/0817/5b763f570db28__b.jpg",
            "bookmark": "89",
            "cache_version": 2,
            "cai": "27",
            "cdn_img": "http://wimg.spriteapp.cn/picture/2018/0817/5b763f570db28__b.jpg",
            "comment": "124",
            "create_time": null,
            "created_at": "2018-08-18 20:05:02",
            "ding": "710",
            "favourite": "89",
            "hate": "27",
            "height": "480",
            "image_small": "http://wimg.spriteapp.cn/picture/2018/0817/5b763f570db28__b.jpg",
            "image0": "http://wimg.spriteapp.cn/picture/2018/0817/5b763f570db28__b.jpg",
            "image1": "http://wimg.spriteapp.cn/picture/2018/0817/5b763f570db28__b.jpg",
            "image2": "http://wimg.spriteapp.cn/picture/2018/0817/5b763f570db28__b.jpg",
            "is_gif": false,
            "love": "710",
            "name": "全球領先在線視頻",
            "original_pid": "0",
            "passtime": "2018-08-18 20:05:02",
            "playcount": "23964",
            "playfcount": "7175",
            "profile_image": "http://wimg.spriteapp.cn/profile/large/2018/08/06/5b6742613dbe7_mini.jpg",
            "repost": "75",
            "screen_name": "全球領先在線視頻",
            "status": "4",
            "t": 1534593902,
            "tag": "",
            "text": "拳皇98中韓對決,賞心悅目的操作",
            "theme_id": "55163",
            "theme_name": "主版塊",
            "theme_type": "1",
            "themes": null,
            "top_cmt": null,
            "type": "41",
            "user_id": "19634336",
            "videotime": 242,
            "videouri": "http://wvideo.spriteapp.cn/video/2018/0817/5b763f576bb4c_wpd.mp4",
            "voicelength": null,
            "voicetime": null,
            "voiceuri": null,
            "weixin_url": null,
            "width": "848"
        },
        {
            "bimageuri": "",
            "bookmark": "542",
            "cache_version": 2,
            "cai": "54",
            "cdn_img": null,
            "comment": "160",
            "create_time": null,
            "created_at": "2018-08-18 03:16:01",
            "ding": "1370",
            "favourite": "542",
            "hate": "54",
            "height": "0",
            "image_small": null,
            "image0": null,
            "image1": null,
            "image2": null,
            "is_gif": null,
            "love": "1370",
            "name": "神馬情況這是",
            "original_pid": "0",
            "passtime": "2018-08-18 03:16:01",
            "playcount": null,
            "playfcount": null,
            "profile_image": "http://wimg.spriteapp.cn/profile/large/2018/03/21/5ab21157ebeaa_mini.jpg",
            "repost": "86",
            "screen_name": "神馬情況這是",
            "status": "4",
            "t": 1534533361,
            "tag": "",
            "text": "“我愛你”的經典表達方式 :周星馳:我養你啊!蘇軾:不思量,自難忘。黃偉文:余生請你指教。王家衛:那一刻,我很暖。夏目漱石:今晚月色真美。張學友:很想帶你去吹吹風。瑪格麗特:我在床上,飯在鍋里。范仲淹:酒入愁腸,化作相思淚。李白:郎騎竹馬來,繞床弄青梅。張愛玲:你還不來,我怎敢老去。錢武肅王:陌上花開,可緩緩歸矣。方文山:天青色等煙雨,而我在等你。刀郎:自你離開以后,從此就丟了溫柔。元稹:曾經滄海難為水,除去巫山不是云。張國榮:就讓我陪你唱一輩子戲,不行嗎?王小波:你好哇,李銀河,見到你真高興。李之儀:只愿君心似我心,定不負相思意。柳永:衣帶漸寬終不悔,為伊消得人憔悴。林夕:你是我這一生等了半世未拆的禮物。李商隱:直道相思了無益,未妨惆悵是清狂。倉央嘉措:世間安得雙全法,不負如來不負卿。馮唐:春水初生,春林初盛,春風十里,不如你。納蘭性德:凄涼別后兩應同,最是不勝清怨月明中。魯迅:我愛子君,仗著她逃出這寂靜和空虛。卓別林:我可以選擇讓你看見,也可以選擇堅持不讓你看見。李宗盛:春風再美也比不上你的笑,沒見過你的人不會明了。顧城:草在結它的種子,風在搖它的葉子,我們站著,不說話,就十分美好。沈從文:我行過許多地方的橋,看過許多次數的云,喝過許多種類的酒, 卻只愛過一個正當最好年齡的人。所以,你的“我愛你”怎么表達呢?",
            "theme_id": "63674",
            "theme_name": "原創段子手",
            "theme_type": "1",
            "themes": null,
            "top_cmt": null,
            "type": "29",
            "user_id": "17588230",
            "videotime": 0,
            "videouri": "",
            "voicelength": null,
            "voicetime": null,
            "voiceuri": null,
            "weixin_url": null,
            "width": "0"
        },
        {
            "bimageuri": "http://wimg.spriteapp.cn/picture/2018/0406/5ac749108a488_wpd.jpg",
            "bookmark": "17",
            "cache_version": 2,
            "cai": "53",
            "cdn_img": "http://wimg.spriteapp.cn/picture/2018/0406/5ac749108a488_wpd.jpg",
            "comment": "19",
            "create_time": null,
            "created_at": "2018-04-13 06:51:01",
            "ding": "238",
            "favourite": "17",
            "hate": "53",
            "height": "640",
            "image_small": "http://wimg.spriteapp.cn/picture/2018/0406/5ac749108a488_wpd.jpg",
            "image0": "http://wimg.spriteapp.cn/picture/2018/0406/5ac749108a488_wpd.jpg",
            "image1": "http://wimg.spriteapp.cn/picture/2018/0406/5ac749108a488_wpd.jpg",
            "image2": "http://wimg.spriteapp.cn/picture/2018/0406/5ac749108a488_wpd.jpg",
            "is_gif": false,
            "love": "238",
            "name": "胡成功導演",
            "original_pid": "0",
            "passtime": "2018-04-13 06:51:01",
            "playcount": "22274",
            "playfcount": "1435",
            "profile_image": "http://wx.qlogo.cn/mmopen/vi_32/PiajxSqBRaEKE3bXR0UdVibEMERmAcmXfr7UicpJPp09Xd8kpibU18lPoF8rK8wC36DL6zggo8Vhqib4QBZibBbepySA/0",
            "repost": "11",
            "screen_name": "胡成功導演",
            "status": "4",
            "t": 1523573461,
            "tag": "",
            "text": "有夢想,有責任!",
            "theme_id": "55163",
            "theme_name": "主版塊",
            "theme_type": "1",
            "themes": null,
            "top_cmt": null,
            "type": "41",
            "user_id": "21504912",
            "videotime": 50,
            "videouri": "http://wvideo.spriteapp.cn/video/2018/0406/5ac749108a488_wpd.mp4",
            "voicelength": null,
            "voicetime": null,
            "voiceuri": null,
            "weixin_url": null,
            "width": "356"
        },
        {
            "bimageuri": "",
            "bookmark": "8",
            "cache_version": 2,
            "cai": "6",
            "cdn_img": "http://wimg.spriteapp.cn/ugc/2018/04/16/5ad47be72e33b.gif",
            "comment": "10",
            "create_time": null,
            "created_at": "2018-04-19 07:36:01",
            "ding": "145",
            "favourite": "8",
            "hate": "6",
            "height": "211",
            "image_small": null,
            "image0": "http://wimg.spriteapp.cn/ugc/2018/04/16/5ad47be72e33b.gif",
            "image1": "http://wimg.spriteapp.cn/ugc/2018/04/16/5ad47be72e33b.gif",
            "image2": "http://wimg.spriteapp.cn/ugc/2018/04/16/5ad47be72e33b.gif",
            "is_gif": false,
            "love": "145",
            "name": "趣圖V",
            "original_pid": "0",
            "passtime": "2018-04-19 07:36:01",
            "playcount": null,
            "playfcount": null,
            "profile_image": "http://wimg.spriteapp.cn/profile/large/2017/03/02/58b6feb82e30f_mini.jpg",
            "repost": "6",
            "screen_name": "趣圖V",
            "status": "4",
            "t": 1524094561,
            "tag": "",
            "text": "完全詮釋了,還沒開始就已經結束了",
            "theme_id": "17083",
            "theme_name": "爆笑Gif",
            "theme_type": "1",
            "themes": null,
            "top_cmt": null,
            "type": "10",
            "user_id": "20327111",
            "videotime": 0,
            "videouri": "",
            "voicelength": null,
            "voicetime": null,
            "voiceuri": null,
            "weixin_url": null,
            "width": "299"
        },
        {
            "bimageuri": "http://wimg.spriteapp.cn/picture/2018/0702/5b39fcb2216b4__b.jpg",
            "bookmark": "18",
            "cache_version": 2,
            "cai": "23",
            "cdn_img": "http://wimg.spriteapp.cn/picture/2018/0702/5b39fcb2216b4__b.jpg",
            "comment": "224",
            "create_time": null,
            "created_at": "2018-07-03 14:36:02",
            "ding": "817",
            "favourite": "18",
            "hate": "23",
            "height": "1024",
            "image_small": "http://wimg.spriteapp.cn/picture/2018/0702/5b39fcb2216b4__b.jpg",
            "image0": "http://wimg.spriteapp.cn/picture/2018/0702/5b39fcb2216b4__b.jpg",
            "image1": "http://wimg.spriteapp.cn/picture/2018/0702/5b39fcb2216b4__b.jpg",
            "image2": "http://wimg.spriteapp.cn/picture/2018/0702/5b39fcb2216b4__b.jpg",
            "is_gif": false,
            "love": "817",
            "name": "白頭人間_",
            "original_pid": "0",
            "passtime": "2018-07-03 14:36:02",
            "playcount": "43504",
            "playfcount": "9083",
            "profile_image": "http://wimg.spriteapp.cn/profile/large/2018/04/28/5ae412c90ee7b_mini.jpg",
            "repost": "22",
            "screen_name": "白頭人間_",
            "status": "4",
            "t": 1530599762,
            "tag": "",
            "text": "老物件了,小時候的回憶啊。【我們都懷舊/活動精選】",
            "theme_id": "55163",
            "theme_name": "主版塊",
            "theme_type": "1",
            "themes": null,
            "top_cmt": null,
            "type": "41",
            "user_id": "17071501",
            "videotime": 20,
            "videouri": "http://wvideo.spriteapp.cn/video/2018/0702/5b39fcb2379ab_wpd.mp4",
            "voicelength": null,
            "voicetime": null,
            "voiceuri": null,
            "weixin_url": null,
            "width": "576"
        },
        {
            "bimageuri": "http://wimg.spriteapp.cn/picture/2018/0506/6d701778-50d0-11e8-8743-1866daeb0df1_wpd.jpg",
            "bookmark": "52",
            "cache_version": 2,
            "cai": "12",
            "cdn_img": "http://wimg.spriteapp.cn/picture/2018/0506/6d701778-50d0-11e8-8743-1866daeb0df1_wpd.jpg",
            "comment": "20",
            "create_time": null,
            "created_at": "2018-05-06 16:00:07",
            "ding": "428",
            "favourite": "52",
            "hate": "12",
            "height": "640",
            "image_small": "http://wimg.spriteapp.cn/picture/2018/0506/6d701778-50d0-11e8-8743-1866daeb0df1_wpd.jpg",
            "image0": "http://wimg.spriteapp.cn/picture/2018/0506/6d701778-50d0-11e8-8743-1866daeb0df1_wpd.jpg",
            "image1": "http://wimg.spriteapp.cn/picture/2018/0506/6d701778-50d0-11e8-8743-1866daeb0df1_wpd.jpg",
            "image2": "http://wimg.spriteapp.cn/picture/2018/0506/6d701778-50d0-11e8-8743-1866daeb0df1_wpd.jpg",
            "is_gif": false,
            "love": "428",
            "name": "我愛你小酒窩~",
            "original_pid": "0",
            "passtime": "2018-05-06 16:00:07",
            "playcount": "9478",
            "playfcount": "951",
            "profile_image": "http://wimg.spriteapp.cn/profile/large/2018/02/24/5a91895a832cd_mini.jpg",
            "repost": "101",
            "screen_name": "我愛你小酒窩~",
            "status": "4",
            "t": 1525593607,
            "tag": "",
            "text": "金毛:讓你天天狗肉湯,狗肉湯,我不要面子的啊",
            "theme_id": "56939",
            "theme_name": "動物成了精",
            "theme_type": "1",
            "themes": null,
            "top_cmt": null,
            "type": "41",
            "user_id": "20005106",
            "videotime": 167,
            "videouri": "http://wvideo.spriteapp.cn/video/2018/0506/6d701778-50d0-11e8-8743-1866daeb0df1_wpd.mp4",
            "voicelength": null,
            "voicetime": null,
            "voiceuri": null,
            "weixin_url": null,
            "width": "360"
        },
        {
            "bimageuri": "http://wimg.spriteapp.cn/picture/2018/0310/9fb8d90c244a11e89d87842b2b4c75ab_wpd.jpg",
            "bookmark": "86",
            "cache_version": 2,
            "cai": "207",
            "cdn_img": "http://wimg.spriteapp.cn/picture/2018/0310/9fb8d90c244a11e89d87842b2b4c75ab_wpd.jpg",
            "comment": "383",
            "create_time": null,
            "created_at": "2018-03-13 07:45:02",
            "ding": "1197",
            "favourite": "86",
            "hate": "207",
            "height": "854",
            "image_small": "http://wimg.spriteapp.cn/picture/2018/0310/9fb8d90c244a11e89d87842b2b4c75ab_wpd.jpg",
            "image0": "http://wimg.spriteapp.cn/picture/2018/0310/9fb8d90c244a11e89d87842b2b4c75ab_wpd.jpg",
            "image1": "http://wimg.spriteapp.cn/picture/2018/0310/9fb8d90c244a11e89d87842b2b4c75ab_wpd.jpg",
            "image2": "http://wimg.spriteapp.cn/picture/2018/0310/9fb8d90c244a11e89d87842b2b4c75ab_wpd.jpg",
            "is_gif": false,
            "love": "1197",
            "name": "終結者繹",
            "original_pid": "0",
            "passtime": "2018-03-13 07:45:02",
            "playcount": "83204",
            "playfcount": "14741",
            "profile_image": "http://wimg.spriteapp.cn/profile/20170508150613.jpg",
            "repost": "204",
            "screen_name": "終結者繹",
            "status": "4",
            "t": 1520898302,
            "tag": "",
            "text": "兄弟,你是不是對帥有什么誤解?",
            "theme_id": "0",
            "theme_name": "",
            "theme_type": "0",
            "themes": null,
            "top_cmt": null,
            "type": "41",
            "user_id": "20730232",
            "videotime": 29,
            "videouri": "http://wvideo.spriteapp.cn/video/2018/0310/9fb8d90c244a11e89d87842b2b4c75ab_wpd.mp4",
            "voicelength": null,
            "voicetime": null,
            "voiceuri": null,
            "weixin_url": null,
            "width": "480"
        }
    ],
    "msg": "成功!"
}
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容

  • 1.文件操作 2.Json 3.python對json文件的支持 4.異常捕獲 a.程序出現某種異常,但是不想因為...
    nothingpy閱讀 819評論 0 2
  • Spring Cloud為開發人員提供了快速構建分布式系統中一些常見模式的工具(例如配置管理,服務發現,斷路器,智...
    卡卡羅2017閱讀 134,837評論 18 139
  • 提取data.json中的數據,將每條數據中的name、text、love和comment信息。并且保存到另外一個...
    oxd001閱讀 96評論 0 0
  • 提取data.json中的數據,將每條數據中的name、text、love和comment信息。并且保存到另外一個...
    d4lx閱讀 102評論 0 0
  • 1、java 集合概述 Set :無序、不可重復的集合。 List : 有序、重復的集合。 Queue:Java ...
    于坤YK閱讀 307評論 0 0