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