質問編集履歴

1

コードにコメントを付けた

2022/01/07 06:49

投稿

kt19906
kt19906

スコア47

test CHANGED
File without changes
test CHANGED
@@ -4,13 +4,13 @@
4
4
 
5
5
  exe_path = "~~~~.exe"
6
6
 
7
- with open("temp","x") as f:
7
+ with open("temp","x") as f: #tempファイルを作成
8
8
 
9
9
  f.write("~~~~")
10
10
 
11
- subprocess.Popen([exe_path,'-open', 'temp'])
11
+ subprocess.Popen([exe_path,'-open', 'temp']) #tempファイルをプログラムから開く
12
12
 
13
- os.remove('temp')
13
+ os.remove('temp') #tempファイルを削除
14
14
 
15
15
  ```
16
16