注释:
单行注释: # *****
# 这是一个注释
多行注释:
"""""
这是注释1
这是注释2
"""""
查看变量类型:
a=10
b="我是帅哥"
type(a)
type(b)
type()只适用于shell窗口中使用
对于字符串操作:
first_name="张"
last_name="三"
print(first_name+last_name) # 字符串直接相加
print(first_name*10) # 字符串10个输出
"张三"*10 # 这个只能自shell中使用