1 Star 0 Fork 0

哔卟哔卟/Python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Test15.py 264 Bytes
一键复制 编辑 原始数据 按行查看 历史
哔卟哔卟 提交于 2023-10-04 17:58 . 提交 Python 相关
# 使用 hash 函数能够计算出变量的 hash 值
print(hash(0))
print(hash(3.14))
print(hash('hello'))
print(hash(True))
print(hash((1, 2, 3)))
# 使用 hash 函数不能计算出变量的 hash 值
print(hash([1, 2, 3])) # 列表
# print(hash({})) # 字典
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/p_bart/python.git
git@gitee.com:p_bart/python.git
p_bart
python
Python
master

搜索帮助