python语言
刘大敏
这个作者很懒,什么都没留下…
展开
-
python 读写文件
coding utf-8import ioimport jsonimport oswith io.open("/home/ylwang/newspace/lxm/QFS-master/msmarco/eval_v2.1_public.json", “r”) as reader: #读文件a = json.load(reader)pas = a[‘passages’]ans = a[‘answers’]que = a['query']que_id = a['query_id']que_t原创 2021-07-31 14:42:29 · 122 阅读 · 0 评论 -
IndentationError: unindent does not match any outer indentation level
IndentationError: unindent does not match any outer indentation level1.根据报错的行数,查看缩进是否正确2.查看空格键和TAB键在pycharm下,file——>settings——>editor——>code style——>python格式都统一为空格键...原创 2021-08-01 18:27:44 · 145 阅读 · 0 评论