python中文字符

来源:互联网 发布:淘宝网装修材料价格表 编辑:程序博客网 时间:2024/06/05 11:02

只需在开头声明 # -*- coding: utf-8 -*-


代码如下

 # -*- coding: utf-8 -*-print "hello world"print '100+200=',100+200s1=raw_input('请输入字符\n')s2=raw_input()print s1+s2    

输出

hello world100+200= 300请输入字符哈哈哈hehehe哈哈哈hehehe

运行环境mac  python2.7

0 0
原创粉丝点击