如题!!
#!/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'
[问题]如何在python中输入输出中文?
-
- 帖子: 84
- 注册时间: 2007-01-31 1:26
- solcomo
- 帖子: 2838
- 注册时间: 2007-04-25 13:12
- BigSnake.NET
- 帖子: 12522
- 注册时间: 2006-07-02 11:16
- 来自: 廣州
- 联系:
-
- 帖子: 84
- 注册时间: 2007-01-31 1:26