你可以使用os.listdir("relative path to where the folders are")的方法。(看一下文件的内容)来获取cwd中的所有子目录。你不应该使用load来获取一个文件的内容,而应该把文件对象传递给json.load() method. Implementing it in your code would be something like this:
import os
for i in os.listdir(path) :
|
|
近视的菠萝 · connecting wireless ...· 1 年前 · |
|
|
想发财的荒野 · Android瀑布流照片墙实现,体验不规则排 ...· 1 年前 · |
|
|
满身肌肉的拖把 · Importing text file : ...· 2 年前 · |
|
|
兴奋的草稿本 · how to print void ...· 2 年前 · |