题解 | #读入整数数字#

读入整数数字

https://www.nowcoder.com/practice/a82efa7714e9466b9f9e1020b4da2b45

import sys

num = int(input())
num_type = type(num)
print(num)
print(num_type)
  1. 使用int函数将从键盘录入的内容强制转换成整数
  2. 使用type函数查看变量类型,并将变量类型命名为num_type
全部评论

相关推荐

ResourceUtilization:四六级不愧是大学最有用的证之一
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务