back soft

مطالب مرتبط با «python 3 how to install modules» در back soft | نویسنده: استخدام کار

Python 3: How to read file json into list of dictionary?

Vote count: 0 I have file with Json format: {"uid": 2, "user": 1} {"uid": 2, "user": 1} {"uid": 2, "user": 1} When i use following code, it show an error: raise JSONDecodeError("Extra data", s, end) json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 22) with open('E:/list.txt','r') as target: my_list = json.load(target) How to convert content of my file into list of dictionary ? Thank you asked 28 secs agoNGuyen Let's block ads! بخوانید...

ادامه مطلب

برچسب‌های مرتبط

python 3 how to print on the same line | python 3 how to use pip | python 3 how to print | python 3 how to compare strings | python 3 how to print without newline | python 3 how to install modules | python 3 how to import module | python 3 how to open a file | python 3 how to run a script | python 3 how to convert bytes to string