1

我尝试从storagepython 中获取文件的大小,使用以下代码为其准备好元素:

storage = firebase.storage()
#storage.child("chat11.exe").put("PdaNetA5105.exe")
files = storage.list_files()
for file in files:
    print(file.name)
    print(storage.child(file.name).get_url(None))
    url = storage.child(file.name).get_url(None)
    if file.name == "chat1.PNG":
        sour = open(bytes(url))

但是有些想法行不通,我尝试做的是展示从firebase上传和下载文件的过程。有任何想法吗

4

0 回答 0