TypeError: argument of type 'WindowsPath' is not iterable当我尝试执行此操作时出现错误
p = subprocess.Popen(['wc', '-l', str(file)], stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
有没有办法我可以正确地做到这一点?
TypeError: argument of type 'WindowsPath' is not iterable当我尝试执行此操作时出现错误
p = subprocess.Popen(['wc', '-l', str(file)], stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
有没有办法我可以正确地做到这一点?