Zephyr_Blog
Translate
Python ---- list all the files in a directory
Code:
import os for (root, dirs, file) in os.walk(path): for f in file: if '.txt' in f: print(f)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Issue when train YOLO5 in docker
Issue: ValueError: SHA could not be resolved, git returned: b'' Solution: git status git config --global --add safe....
Docker error: libGL.so.1: cannot open shared object file: No such file or directory
libGL.so.1: cannot open shared object file: No such file or directory solution: pip uninstall opencv-python pip install opencv-pyt...
Some commands for docker
install docker: curl -fsSL https://test.docker.com -o test-docker.sh sudo sh test-docker.sh list the containers: docker ps list all the ...
No comments:
Post a Comment