下列代码的运行结果是()fruit=('blue',1234,('apple','pear','peach','mango'))fruit[-1][1]
A: apple
B: pear
C: peach
D: mango
A: apple
B: pear
C: peach
D: mango
举一反三
- 下列代码的运行结果是()<br/>>>>fruit=('blue',1234,('apple','pear','peach','mango'))<br/>>>>fruit[-1][2] A: peach B: apple C: mango D: pear
- 程序运行结果为(______ )fruit = ['apple', 'banana', 'mango', 0]for item in fruit: if item == 0: fruit[item] = 'watermelon' elif item == 'mango': fruit[2] = 'pear'print(fruit)
- 以下代码运行后的结果是?f = ['apple','banana','pear']print('apPle' in f)
- 字典fruit={'apple':'red','peach':'pink','lemon':'orange'},fruit['lemon']的结果是( )。 A: 'pink' B: 'red' C: 'orange' D: Orange
- 下列语句执行后,di['fruit'][1]值为 。di={'fruit':['apple','banana','orange']}di['fruit'].append('watermelon')