[问题]如何在python中输入输出中文?
发表于 : 2008-06-26 11:14
如题!!
#!/usr/bin/python
#filename:continue.py
while True:
s = raw_input('Enter something:')<------“Enter something”显示成中文,并在运行时可以输入中文。
if s == 'quit':
break
if len(s) < 3:
continue
print u'Input is of sufficient length'
#!/usr/bin/python
#filename:continue.py
while True:
s = raw_input('Enter something:')<------“Enter something”显示成中文,并在运行时可以输入中文。
if s == 'quit':
break
if len(s) < 3:
continue
print u'Input is of sufficient length'