:::

4-2 上傳檔案

from google.colab import files
print('上傳一張要辨識的圖片')
uploaded = files.upload()
#例出檔案名、大小
for fn in uploaded.keys():
  print('User uploaded file "{name}" with length {length} bytes'.format(
      name=fn, length=len(uploaded[fn])))
#上傳的檔名
fn  

 


Google網站翻譯工具列

站內搜尋