中文字幕一区二区人妻电影,亚洲av无码一区二区乱子伦as ,亚洲精品无码永久在线观看,亚洲成aⅴ人片久青草影院按摩,亚洲黑人巨大videos

Python 字典(Dictionary) type()方法


描述

Python 字典(Dictionary) type() 函數(shù)返回輸入的變量類型,如果變量是字典就返回字典類型。

語法

type()方法語法:

type(dict)

參數(shù)

  • dict -- 字典。

返回值

返回輸入的變量類型。

實例

以下實例展示了 type()函數(shù)的使用方法:

#!/usr/bin/python

dict = {'Name': 'Zara', 'Age': 7};
print "Variable Type : %s" %  type (dict)

以上實例輸出結(jié)果為:

Variable Type : <type 'dict'>
其他擴(kuò)展