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

为了用 Python 重复输出苗族菱形回纹 “◇”n 次,代码如下: n = int(input()) unit = "◇" pattern = ______ print(pattern) 空白处正确写法是?

A. unit + n
B. unit * n
C. str (n) + unit
D. n +unit

正确答案:B

试卷来源:2026信息素养大赛智传民韵Python小高组(小学4-6年级_复赛)模拟卷(二)

本卷相关题目

在线做题 同科目题库