day_10 py dictionary

#! /usr/bin/env/python 
#-*-coding:utf-8-*-
'''
dictionary: (that is, add an index name, and then classify it) infor = {key:value, key:value}

list Store the same information
as there are more things in the list,
all the dictionaries will come out
'''

infor = {"name":"Squad leader","addr":"Shandong....","age":" 19"}
print(infor["name"],infor["addr"],infor["age"])

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324652872&siteId=291194637