下列Python代码填入横线中,不能实现随机选择一个水果作为今日特价水果的是?

ki241249 单选题 共 个子题
import random
fruits = ["apple", "banana", "cherry"]
today_fruit = __________
print(today_fruit)
A

today_fruit = fruits[random.randint(0,2)]

B

today_fruit = random.shuffle(fruits)

C

today_fruit = random.choice(fruits)

D

today_fruit = fruits[random.randint(-3,-1)]

正在加载题目数据…
已答 /
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析
讨论
发布
登录后参与讨论 立即登录
发布讨论需先绑定并验证手机号 去绑定手机号
加载中…
我
我
回复 @
回复 @
发送
还没有人讨论,来发表第一条吧