Bitly
Bitly 0 读取文本文件(JSON格式) 读取文件中第一行 path = 'pydata-book/datasets/bitly_usagov/example.txt' open(path).readline() # 文件第一行 上下文管理器with with open(path) as file: print(file.readline()) print(file.readline()) import json path = 'pydata-book/datasets/bitly_usagov/example.txt' records = [json.loads(
暂无评论