📌  相关文章
📜  如何在python代码示例中将项目添加到字典中

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

代码示例4
#dictionary
programming = {
    "Bugs": "These are the places of code which dose not let your program run successfully"
    ,"Functions":"This is a block in which you put a peice of code"
    ,"Shell":"This is a place where the code is exicuted"
    }
print(programming["Bugs"])
print(programming["Shell"])
#Adding items to dictionary
#Firtly get the access to the dictionary
programming["Loops"] = "This is a action of doing something repeatedly"
print(programming["Loops"])