#IPO input-process-output
#x=input("提示文字") x的数据类型都是字符串型
name=input("输入变量名:")
print("变量名:"+name,"类型:",type(name))
number=input("输入数字:")
print("数字是:" + number)
number=int(number)#类型转化
print(number * 1, type(number))
#print(输出内容)
#print(value,...,sep='',end='\n',file=none)
a=100
b=50
print(90)
print(a)
print(a*b)
print('hello world')
print("hello world")
print('''hello world''')
print("""hello world""")
print(a,b,a+b,"hello world")
#ascii码
print('a')
print(chr(97))
print('A')
print(chr(97-32))
print(0)
print(chr(48))
print('[')
print(chr(91))
#Unicode码
print(ord('中'))
print(ord('文'))
print(chr(20013),chr(25991))
#输出到文件print
file=open('print.txt','w')
print("世界,你好",'\n'"hello world",file=file)
file.close()
print("hello",end='-->')
print("world")
print("hello"+"world")#+同类型
运行结果: