代码
try:
os.mkdir("udp_hole_log")
except:
print(traceback.format_exc())
异常输出
Traceback (most recent call last):
File "udp_hole.py", line 81, in <module>
os.mkdir("udp_hole_log")
FileExistsError: [Errno 17] File exists: 'udp_hole_log'