Python第一个程序
输出hello world!
print("hello world!")
print默认是以回车结尾
x=18
print("hello world!")
print(x)
输出结果
hello world!
18
若不想回车的话,改变结束符
x=18
print("hello world!",end="")
print(x)
输出结果:
hello world!18
Python第一个程序
输出hello world!
print("hello world!")
print默认是以回车结尾
x=18
print("hello world!")
print(x)
输出结果
hello world!
18
若不想回车的话,改变结束符
x=18
print("hello world!",end="")
print(x)
输出结果:
hello world!18