Discuss / Python / 一个问题

一个问题

Topic source

GrayAshhh

#1 Created at ... [Delete] [Delete and Lock User]

请问为什么要使用[d for d in os.listdir('.')]而不是直接os.listdir('.'),后者生成的也是一个list吧?


  • 1

Reply