1.脚本:编写的程序
终端: powershell.cmd
2.符号
#(octothorpe or pound character) 注释
/除号,和?一起的
3.格式化(format)
my_name='Ann'
print(f"Let's talk about {my_name}.")
print("my name is { }.".format('Ann'))
formatter="{} {} {} {}"
print formatter.format(1,2,3,4)
print formatter.format("one","two","three","four"))
1 2 3 4
one two three four
4.print相关
print('.'*10)
..........
print("my name is, end=' '") #末尾不换行,''内有无空格决定输出有无空格
print("Ann.")
my name is Ann.
print("""
hi.
I'm Ann.
""")
hi.
I'm Ann.
函数
浮点数四舍五入
round(1.733)
2