📜  如何在python代码示例中访问私有列表中的项目

📅  最后修改于: 2022-03-11 14:46:37.238000             🧑  作者: Mango

代码示例1
Fruits = ["Apple","Banana","Cherry","Grapes"]
#access all
print(Fruits)
#access privatly
whom_to_call = Fruits[0]
print("Boss:How are you",whom_to_call,"?")