笔记7:pyhon简单打印
#!/usr/bin/env python#打印字符串print("hello,51zxw")print("are","you","OK?") #打印整数print(300)print(300+200) #打印变量,%s接收字符串类型name="51zxw"print("hello,%s" %name) #打印变量,%d接收数字类型width=30print("width is %d" %width) #input语句,%r接收任意类型con=input("please input Content")print("the input Content is %r" %con)
赞 (0)