第21473题 单选题
补全Python代码,实现根据输入的重复次数n输出n个菱形符号组成的图案

为数字化保存苗族刺绣中的经典菱形回纹图案,需编写Python程序让用户输入重复次数n,输出由n个“◇”组成的图案,请补全以下代码:

n = int(input())
unit = "◇"
pattern = __________
print(pattern)
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析