芷兮离离

关注

python 中input()输入函数使用

芷兮离离

关注

阅读 78

2022-01-28

color=input(‘你最喜欢什么颜色?’)

print​​(color,type(color))​​


a=input​​('输入一个值‘)​​

b=input​​('输入另一个值’)​​

print​​(a,type(a))​​

print​​(b,type(b))​​

print​​(a+b) ​​       wrong

print​​(int(a)+int(b))​​    right



相关推荐

Villagers

python编程 input输入函数

Villagers 172 0 0

爱读书的歌者

input()函数——输入

爱读书的歌者 30 0 0

一ke大白菜

python 快速入门 input输入函数 接收用户键盘输入

一ke大白菜 93 0 0

萨摩斯加士奇

4.12 input( ) 输入函数 及注释

萨摩斯加士奇 105 0 0

玉字璧

Python input() 函数

玉字璧 67 0 0

青青子衿谈育儿

【Python】字符串 ⑦ ( input 字符串输入 | input 函数自带提示参数 | input 函数接收的变量类型 )

青青子衿谈育儿 69 0 0

千妈小语

python INPUT输入文件路径

千妈小语 42 0 0

一点读书

Python入门--input函数

一点读书 49 0 0

alonwang

Python怎么用input输入矩阵

alonwang 81 0 0

耳一文

Python中的输入、输出函数

耳一文 58 0 0

精彩评论(0)

0 0 举报