检查条件,如果不满足,则提示。
assert os.path.isdir(my_Path), 'dir path error'
refer:
- Errors and Exceptions(https://docs.python.org/3/tutorial/errors.html)[https://docs.python.org/3/tutorial/errors.html]
.
.
.
.
.
.
.
.
.
检查条件,如果不满足,则提示。
assert os.path.isdir(my_Path), 'dir path error'
refer:
.
.
.
.
.
.
.
.
.
转载于:https://www.cnblogs.com/sonictl/p/10875712.html