擅长:python、mysql、java
<p>我在研究<a href="https://github.com/thisbejim/Pyrebase" rel="nofollow noreferrer">pyrebase</a>文档。因此,我们只能从某些路径中提取密钥。</p>
<blockquote>
<p>To return just the keys at a particular path use the shallow() method.</p>
</blockquote>
<pre><code>all_user_ids = db.child("users").shallow().get()
</code></pre>
<p>在你的情况下,会是这样的:</p>
<pre><code>firebase = pyrebase.initialize_app(config)
db = firebase.database()
allCats = db.child("data").shallow().get()
</code></pre>
<p>如果没用就告诉我。</p>