1,字符串
print("标准输出字符串")
a=10
print(a)
print("这是变量",a)
print("变量名 要求 必须是 字母,数字,下划线")
2,标准化输出
print("格式化输出")
age = 18
print("我的名字是%s,国籍是%s"%("小文","中国"))
print("我今年%d岁"%age)
3,打印超链接
#打印超链接
print("www","baidu","com",sep=".")
print("https://"+"www","baidu","com",sep=".")
4,各种换行输出
print("helloworld不换行,先打印hello,后打印world,形成helloworld")
print("hello",end="")
print("world",end="\t") #制表
print("python")
print("python",end="\n") # 另外一行显示
5,输入
passWorld = input("输入密码:")
print("刚刚输入密码为:",passWorld)
6,类型输出
# 类型输出
a = 18
print(type(a))
b = input("输入密码:")
print(type(b))
7,强制类型转换
a = int("1234")
b = a+1000
print(b)
c = int(input("输入c:"))
print("输入了一个数字:%d"%c)