输入输出
1 # -*- coding = utf-8 -*- 2 # @Time : 2021/2/24 14:48 3 # @Author : Jeff 4 # @File : demo01.py 5 # @Software: PyCharm 6 7 # 第一个python程序 8 print("hello world") # 单行注释 9 ''' 10 多 11 行 12 注 13 释 14 ''' 15 print("python") 16 a = 10 17 print("这是变量", a) 18 19 age = 18 20 # 占位符%d 21 print('小明的年龄为 %d' %age); 22 print('%s的%s为 %d' %("小明","年龄",age)); 23 print("aaa","bbb","ccc") 24 print("www","baidu","com",sep='.')#超链接 25 print("hello",end='')#取消换行 26 print("world",end='\t') 27 print("python",end="\n") 28 print("end"); 29 30 #输入 31 a=input("输入") 32 print(a) 33 print(type(a)) 34 35 b=int(input("请输入b")) 36 print(b) 37 print(type(b))
道阻且长,行则将至

浙公网安备 33010602011771号