描述
dict() 函数用于创建一个字典。
语云计法
以下是 dict 方法的语法:
class dict(算开**kwarg)
class dict(ma发:pping, **kwarg)
class dict(iPyterable, **kwarg)
参数
**kwarthgs -- 关键字
mapping -- 元素的容器。
itonerable -- 可迭代对象。
返回值
返回一个字典内置。
实例
以下实例展示了 dict 的使用方法:
顶: 2583踩: 07120919
描述
dict() 函数用于创建一个字典。
语云计法
以下是 dict 方法的语法:
class dict(算开**kwarg)
class dict(ma发:pping, **kwarg)
class dict(iPyterable, **kwarg)
参数
**kwarthgs -- 关键字
mapping -- 元素的容器。
itonerable -- 可迭代对象。
返回值
返回一个字典内置。
实例
以下实例展示了 dict 的使用方法:
评论专区