|
楼主 |
发表于 2016-6-18 19:42:52
|
显示全部楼层
/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 /Users/Kalvin/Study/Programming/PycharmProjects/鱼C_Python/file.py
Traceback (most recent call last):
File "/Users/Kalvin/Study/Programming/PycharmProjects/鱼C_Python/file.py", line 22, in <module>
rename('//Volumes//My Passport//极客学院教程','【极客学院就业班报名客服QQ:2602575588 VIP充值请进入jkxy.taobao.com】')
File "/Users/Kalvin/Study/Programming/PycharmProjects/鱼C_Python/file.py", line 14, in rename
if not os.path.isdir(f):
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/genericpath.py", line 42, in isdir
st = os.stat(s)
TypeError: argument should be string, bytes or integer, not tuple
Process finished with exit code 1
我没传进去tuple,怎么报错? |
|