摘要: 1.input()函数常涉及的强制类型转换 第一种是在键入时进行转换,例如:a = int(input()) 1 a=int (input()) 2 b=int (input()) 3 a=a +b 4 print (a) 第二种则是在使用时进行转换。这样赋值的数据存储的形式仍是input()返回的 阅读全文
posted @ 2022-12-08 19:46 一划写雨 阅读(2050) 评论(0) 推荐(0)