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

将丝路商品价格字符串转成整数,正确的代码是? price = "99"

A:int(price)
B:str(price)
C:float(price)
D:list(price)

正确答案:A

试卷来源:2026年丝路新程 Python编程(小学组4-6年级)模拟卷(一)

本卷相关题目

在线做题 同科目题库