Skip to content

Commit

Permalink
update a new method for Chinese
Browse files Browse the repository at this point in the history
  • Loading branch information
chunyang-wen committed Nov 17, 2015
1 parent d92770f commit cbd3f2d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Python/unicode_repr_1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!bin/env python
#-*-coding=utf-8-*-

import sys

for line in sys.stdin:
line = line[:-1]
print repr(line.decode('gbk')).replace("u\'","").replace("\'","")

0 comments on commit cbd3f2d

Please sign in to comment.