Option 1: Works for Python 3.4 + from pathlib import Path Path(__file__).name # ScriptName.py Path(__file__).stem # ScriptName # Option 2: use `os` library ...
確定! 回上一頁