Python os.listdir() 的替代方法是什么?

sil*_*mar -4 python python-2.7 python-3.x

当我在 python 中执行以下命令时,控制台给出错误注意:我正在Windows 10 环境中工作

>>> os.listdir()

Traceback (most recent call last):

  File "<stdin>, line 1, in <module>

TypeError: listdir() takes exactly 1 argument (0 given)
Run Code Online (Sandbox Code Playgroud)