会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
郅熙
博客园
首页
新随笔
联系
订阅
管理
2022年12月8日
python中input()、print()用法
摘要: 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)
公告