摘要: 1,input函数的作用 接受来自用户的输入 2,返回值的类型 输入值的类型为str 3,值的存储 使用=对输入的值进行存储 第一次回车输出 :殷明帅吗 然后在console区域回答答案:帅啊(如图绿色字) 敲击回车会输出 阅读全文
posted @ 2021-02-23 23:52 Akihabor 阅读(221) 评论(0) 推荐(0)
摘要: #单行注释 ‘’‘多行 注释’‘’ 阅读全文
posted @ 2021-02-23 22:38 Akihabor 阅读(10) 评论(0) 推荐(0)
摘要: #1通过str()将其他函数转化成str类型a=10b=9.9c=Falseprint(type(a),type(b),type(c))print(str(a),str(b),str(c),type(str(a)),type(str(b)),type(str(c)))#2通过int()将其他函数转化 阅读全文
posted @ 2021-02-23 22:35 Akihabor 阅读(56) 评论(0) 推荐(0)