Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想做类似的事情:
sftp.listdir("path_to_files/*.csv")
同样地
sftp.get("path_to_files/*.csv")
可以使用paramiko吗?
paramiko
谢谢
索纳尔
使用列表推导应该很容易
[ f for f in sftp.listdir("path_to_files") if f.endswith(".csv") ]