input用户输出数据到打印界面上
print打印输出界面
字符串和变量组合输出:
name = 'cx'
age = 19
height = 172.223
1,print('我的名字叫',name,',我今年', age,'岁,身高',height,'cm')
2,或者用连字符+来连接字符
注意:连字符俩边都是str类型
3,用f字符串来使用变量
print(f'我的名字叫{name},我今年{age} 岁,身高{height}cm')
input用户输出数据到打印界面上
print打印输出界面
字符串和变量组合输出:
name = 'cx'
age = 19
height = 172.223
1,print('我的名字叫',name,',我今年', age,'岁,身高',height,'cm')
2,或者用连字符+来连接字符
注意:连字符俩边都是str类型
3,用f字符串来使用变量
print(f'我的名字叫{name},我今年{age} 岁,身高{height}cm')