题库首页 › 信息素养大赛(Python) › 题目 18520

在Python中,要获取用户输入的哈尼族梯田种植层数(整数),正确的代码是()

A:n = input()
B:n = int(input())
C:input(n)
D:int(input(n))

正确答案:B

试卷来源:2026年智传民韵Python编程(小学组1-3年级)模拟卷(一)

本卷相关题目

在线做题 同科目题库