Ben*_*ria 5 python integer google-cloud-firestore
我试图在我的 Firestore 数据库中存储来自 python 程序的 64 位整数。问题是最后一位数字似乎四舍五入了。
doc = db.collection('questions').document('0MPvbeTEglD9lbpDq6xm')
ints = [9223372036854775807, 9223372036854775533, 9223372036854775267]
doc.update({
'random': ints
})
Run Code Online (Sandbox Code Playgroud)
当我查看数据库时,它们存储为:
random = [9223372036854776000, 9223372036854776000, 9223372036854775000}
根据文档,支持 64 位有符号整数。可能是什么问题?