Avatar ·

फ़ाइल में लिखते समय कोडिंग समस्या: UnicodeEncodeError: 'charmap' कोडेक कैरेक्टर '\ U039a' को एनकोड नहीं कर सकता

📁 पायथन

आवश्यकता है कि निर्दिष्ट पैरामीटर्स के अनुसार vk को पेयर किया जाए और परिणाम को Python 3.5 में फ़ाइल में लिखा जाए।

  search_result = " API.USERS.SEARCH (sort = sort_index, sex = sex_index, age_to = Age_index, Offset = Offseet_index, Count = Count_index, Country = Country) result =  Open  ( 'result.txt' ,  )  white  index! = (count_index - offseet_index): result.write ( str  (search_result [index +  1 ])) result.write ( '\\ n' ) index +=  1  result.close ()  

मुझे एक error मिलती है:

  Traceback (Most Recent Call Last): File  "" E: *** \\ VKSCRIPT.PY "" , Line  19 ,  in  <