随机选取列表['apple' , 'pear' , 'peach' , 'orange']中的1个字符串的Python代码是:
A.
from random import* sample(['apple' , 'pear' , 'peach' , 'orange'])
B.
from random import* choice(['apple' , 'pear' , 'peach' , 'orange'])
C.
from random import* ls = ['apple' , 'pear' , 'peach' , 'orange'] shuffle(ls)