首页 > 技术文章 > Python 输入输出

lynclynn 2016-02-17 09:38 原文

 

语法注释

输入输出

 

 

#语法缩进,4个空格
#注释
#冒号:结尾,缩进的预计视为代码块
#大小写敏感 
#输出
print 300
print 'hello','world' 
#输入
a=raw_input() 

name=raw_input()
print 'hello',name 
name=raw_input('please enter your name:')

推荐阅读