import os
script_path = os.path.realpath(__file__)
script_dir = os.path.dirname(script_path)
转载于:https://www.cnblogs.com/norsd/p/6359286.html
import os
script_path = os.path.realpath(__file__)
script_dir = os.path.dirname(script_path)
转载于:https://www.cnblogs.com/norsd/p/6359286.html