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!...
ادامه مطلبVote count: 0 I have a list which contains english alphabets,Hindi alphabets,Greek Symbols and digits as well. I want to remove all alphabets except that of Hindi. Hindi alphabets range in unicode is u'0900'-u'097F'. For details about Hindi alphabets visit http://jrgraphix.net/r/Unicode/0900-097F. Input: l=['ग','1ए','==क','@','ऊं','abc123','η','θ','abcशि'] for i in l: print i Desired Output: ग ए क ऊं शि asked 38 secs agoishpreet Let's block ads!...
ادامه مطلب