练习python的第一节课。
print("hello word!")
print("a=5+4")
#这是这是单行注释我的第一个程序
'''
这是多行注释
第二行
'''
a=9
print("这是变量 ",a)
#字符串格式化
age=10
print("我今年%d岁"%age)
print("我的名字是%s,我的家乡在%s"%("小明","北京"))
print("www","cctv","com",sep=".")#用点分割开来
print("hello",end=" ")
print("hello",end="\t")#t是空一格
print("hello",end="\n")#n是换行
print("hello")
hello word!
a=5+4
这是变量 9
我今年10岁
我的名字是小明,我的家乡在北京
www.cctv.com
hello hello hello