質問編集履歴
1
変更点を追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -48,4 +48,30 @@
|
|
48
48
|
#環境
|
49
49
|
OS:ubuntu18.04
|
50
50
|
python:2.7
|
51
|
-
g++:7.5.0
|
51
|
+
g++:7.5.0
|
52
|
+
|
53
|
+
#変更点
|
54
|
+
call.py
|
55
|
+
```python
|
56
|
+
import subprocess
|
57
|
+
|
58
|
+
print '!!! start'
|
59
|
+
|
60
|
+
cmd = './hello'
|
61
|
+
retcode = subprocess.check_output(cmd)
|
62
|
+
print(retcode)
|
63
|
+
|
64
|
+
print '!!! end'
|
65
|
+
```
|
66
|
+
|
67
|
+
出力
|
68
|
+
```ここに言語を入力
|
69
|
+
popen start
|
70
|
+
!!! start
|
71
|
+
Hello world.
|
72
|
+
|
73
|
+
!!! end
|
74
|
+
(None, None)
|
75
|
+
popen end
|
76
|
+
|
77
|
+
```
|