hncys 发表于 2018-8-11 09:20:23

Python中文乱码解决

# coding=UTF-8  
'''
  
Created on 2013-8-28
  
@author: xmyj-0210
  
'''
  
number = 23
  
running = True
  
#while 开始
  
while running:
  
guess = int(raw_input('Enter an integer:'))
  

  
if guess == number:
  
print 'Congratulations,you guessed it.'
  
running = False
  
elif guess < number:
  
print 'No,it is a little higher than that'
  
else:
  
print 'No,it is a little lower than that'
  
#while 结束
  
print 'Done'
页: [1]
查看完整版本: Python中文乱码解决