单选题

水果店管理员现有列表 fruits = ['apple', 'orange', 'banana', 'peach'] ,当前接收到葡萄('grape'),需要在列表末尾添加该元素,正确的是哪一项?

A

fruits.insert('grape')

B

fruits.append('grape')

C

fruits.index('grape')

D

fruits.count('grape')

赣ICP备20007335号-2