1.importのOS
os.getcwd()#現在の絶対パスを取得
os.path.split( 'D:\\ pythontest \\ ostest \\ Hello.py')# パス(フォルダ、ファイル名)に分解し、それがタプルを返しますタイプ
os.path.join( 'D:\\ pythontest'、 'ostest')#D:\\ pythontest \\ ostest「スプライスパス
os.path.getsize( 'D:\\ pythontest \\ ostest \\ hello.py')#ビューのファイルサイズ
os.listdir(os.getcwd())#は、すべてのファイルとディレクトリの電流経路を見ます
os.path.exists( 'D:\\ pythontest \\ ostest \\ hello.py')#ファイルが存在するかどうかを確認
2.番組終了PCを起動
EXEの1)os.startfile(パス)#pathのインストールパス
2)クライアントが何度も開き、
#パス=入力(「絶対パスを開始するには、あなたのexeファイルを入力してください:」)
#カウント= INT(入力( '番号を開始するには:'))
範囲内のインデックスの#(カウント):
#1 os.startfile(パス)