学习:python-第一个python程序

python的输入与输入
#打印字符串
print("hellow,word")
print("are","you","ok")

#打印整数
print(500)
print(200+300)

#打印变量
name="pan"
print("hello,%s" %name)

width=30
print("width is %d" %width)

#input 语句
con= input("please input content")
print("contents is %r" %con)
posted @ 2022-03-03 09:42  测试小潘  阅读(28)  评论(0)    收藏  举报