原文链接:https://www.cnblogs.com/gengcx/p/6707024.html
Python2.x中,input()函数让我们明确我们输入的是数字格式还是字符格式,就是我们自己要知道我们想要的是什么,数字格式直接输入,字符格式必须加上单引号或者双引号,以确定我们输入的是字符串。
python2 input,raw_input与 python3 input区别
raw_input()函数无论用户输入什么,都默认为字符格式
python2 input,raw_input与 python3 input区别
在Python3中是将Python2中的input()删除了,把raw_input()的名称改成了input()函数
python2 input,raw_input与 python3 input区别

相关文章:

  • 2021-10-22
  • 2021-07-09
  • 2021-10-01
  • 2022-02-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-16
  • 2022-12-23
  • 2022-12-23
  • 2021-08-23
  • 2021-11-21
  • 2021-08-25
  • 2022-12-23
相关资源
相似解决方案