第27767题 单选题
运行以下Python代码,最终的完整输出结果是?
fruits = ['apple', 'banana', 'cherry']
for index, fruit in enumerate(fruits, start=1):
    print(f"{index}: {fruit}")
A

: apple 1: banana 2: cherry

B

1: apple 2: banana 3: cherry

C

apple banana cherry

D

1 apple 2 banana 3 cherry

程序运行统计
暂无判题统计
提交0次 正确率0.00%
答案解析