dict={
‘a’: any thing is os,
‘b’: anything is ok
}
注意每对之间逗号,隔开
引用的时候
dict[‘a’]
注意 a的引号
Python的格式化输出——format
想要控制格式输出就用format,{}内为format参数填充的地方,字符形式的一定要加引号
dict={
‘a’: any thing is os,
‘b’: anything is ok
}
注意每对之间逗号,隔开
引用的时候
dict[‘a’]
注意 a的引号
Python的格式化输出——format
想要控制格式输出就用format,{}内为format参数填充的地方,字符形式的一定要加引号