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.
是否可以在下载之前/之后在 python 中使用 selenium 更改文件的文件名?我不想使用 os 模块。谢谢!例如,如果我的文件被下载到C:\foo\bar,并且它的名称是foo.csv,我可以将其更改为bar.csv.
C:\foo\bar
foo.csv
bar.csv
不,这对于任何 Selenium 库都是不可能的。
使用重命名文件的普通 Python 方法。