/helloworld/222.py
https://bitbucket.org/mariastepanova/good-one · Python · 7 lines · 7 code · 0 blank · 0 comment · 1 complexity · b4973888d30d0390bb40f26446a8c5c0 MD5 · raw file
- import codecs
- text=codecs.open("C:\\Documents and Settings\\User\\qwerty.txt", encoding = 'utf16').readlines()
- print text
- output=codecs.open("C:\\Documents and Settings\\User\\qwert.txt", encoding = 'utf8', mode = 'w')
- for l in text:
- output.write(l)
- output.close()