任何编程语言都有输入输出和用打交道,python也不例外,输入input(),输出print() 玖乐网络(http://www.96net.com.cn/)分享自己的心得
1,input()用法实例
name=input("please enter your name:")
print("hello"+name)
2,print()用法实例
print("hello",name) print("hello"+name) print("hello",name,"you name very good")
3,注释的用法
python单行注释 #
python多行注释 ''' '''
在写代码过程中要添加注释方便自己和别人阅读,成为一个优秀的程序员必要条件。