我正在尝试将数据从Firebase数据库获取到python应用程序,所以我尝试使用此代码
from firebase import firebase
from firebase.firebase import FirebaseApplication
from firebase import *
firebase_app = firebase.FirebaseApplication("https://cleandzapp.firebaseio.com/")
#data ={
# 'Name': 'nana',
# 'Email':'ghjjkk',
#}
result = firebase.get('cleandzapp/user',None)
print(result)
但是我遇到了这个错误
C:\Users\Marc\PycharmProjects\pythonProject\venv\Scripts\python.exe "C:\Data\nana\studY\CS\2CS\S2\arduino\mini projet\CleanDzApp\firebase_test.py"
Traceback (most recent call last):
File "C:\Data\nana\studY\CS\2CS\S2\arduino\mini projet\CleanDzApp\firebase_test.py", line 10, in <module>
result = firebase.get('cleandzapp/user',None)
AttributeError: module 'firebase.firebase' has no attribute 'get'
Process finished with exit code 1
有什么帮助吗?