Python File Path less than 1 minute read Python file path 1. Check directory Current file name import os print(__file__) directory path import os print(os.path.realpath(__file__)) print(os.path.abspath(__file__)) Working file directory path import os print(os.path.dirname(os.path.realpath(__file__))) Working folder directory path import os print(os.getcwd()) Working folder directory file list import os print(os.listdir(os.getcwd())) 2. Current directory './' 3. Parent directory '../' 4. Change working directory import os os.chdir("/home/dada/test/") Go to top Share on Twitter Facebook LinkedIn Previous Next Leave a comment
STM32 UART Interrupt less than 1 minute read 원하는 바이트 크기보다 더 큰 것을 받았을 경우 내가 처음에 보낸 것은 가 붙어있어서 일정 크기만큼 잘린 후 버퍼에 남은 것 때문에 먹통이 되어버린 것이다.
Leave a comment