用法:
values()
返回字典值的新視圖。請參閱視圖對象的文檔。
一個
dict.values()
視圖和另一個視圖之間的相等比較將始終返回False
。這也適用於將dict.values()
與自身進行比較時:>>> d = {'a': 1} >>> d.values() == d.values() False
相關用法
- Python dict()用法及代碼示例
- Python dictionary update()用法及代碼示例
- Python dictionary values()用法及代碼示例
- Python dictionary type()用法及代碼示例
- Python dictionary fromkeys()用法及代碼示例
- Python dict用法及代碼示例
- Python dictionary cmp()用法及代碼示例
- Python dictionary get()用法及代碼示例
- Python dictionary setdefault()用法及代碼示例
- Python distributed.protocol.serialize.register_generic用法及代碼示例
- Python distributed.Client.gather用法及代碼示例
- Python distributed.recreate_tasks.ReplayTaskClient.recreate_task_locally用法及代碼示例
- Python distributed.diagnostics.plugin.SchedulerPlugin用法及代碼示例
- Python distributed.Client.ncores用法及代碼示例
- Python distributed.Client.retire_workers用法及代碼示例
- Python distributed.Client.unregister_worker_plugin用法及代碼示例
- Python distributed.fire_and_forget用法及代碼示例
- Python dir用法及代碼示例
- Python distributed.Client.set_metadata用法及代碼示例
- Python distributed.Client.scheduler_info用法及代碼示例
注:本文由純淨天空篩選整理自python.org大神的英文原創作品 dict.values。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。