PythonNo.17_字符嵌套

Python No.17_字符嵌套[Python基础]

# !/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:Hugolinhj

av_catalog = {
"oumei":{
"www.youpron.com":["很多免费的","质量一般"],
"www.pornhub.com":["很多免费,也大","质量比yourporn高"],
"letmedothistoyou.com":["多自拍,高质量图片多","资源不多,更新慢"],
"x-art.com":["质量很高","全收费!"]
},
"rihan":{
"tokoy-hot":["质量一般","听说收费"]
},
"dalu":{
"1024":["全免费","服务器在国外"]
},
}
av_catalog["dalu"]["1024"][1]="可以在国内做镜像"
print(av_catalog["dalu"]["1024"][1])

av_catalog.setdefault("dalu",{"www.baidu.com":[1,2]})
print(av_catalog)




以上是 PythonNo.17_字符嵌套 的全部内容, 来源链接: utcz.com/z/537899.html

回到顶部