質問編集履歴
3
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,23 +6,39 @@
|
|
6
6
|
|
7
7
|
### 該当のソースコード
|
8
8
|
|
9
|
+
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 03:03:55)
|
10
|
+
|
11
|
+
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
|
12
|
+
|
13
|
+
Type "copyright", "credits" or "license()" for more information.
|
14
|
+
|
15
|
+
>>> WARNING: The version of Tcl/Tk (8.5.9) in use may be unstable.
|
16
|
+
|
17
|
+
Visit http://www.python.org/download/mac/tcltk/ for current information.
|
18
|
+
|
9
19
|
import random
|
10
20
|
|
11
|
-
winner=''
|
21
|
+
>>> winner=''
|
12
22
|
|
13
|
-
random_choice=random.randint(0,2)
|
23
|
+
>>> random_choice=random.randint(0,2)
|
14
24
|
|
15
|
-
if random_choice==0:
|
25
|
+
>>> if random_choice==0:
|
16
26
|
|
17
|
-
|
27
|
+
computer_choice='rock'
|
18
|
-
|
19
|
-
elif random_choice==1:
|
20
28
|
|
21
29
|
|
22
30
|
|
31
|
+
|
32
|
+
|
23
|
-
|
33
|
+
>>> elif random_choice==1:
|
34
|
+
|
35
|
+
|
24
36
|
|
25
37
|
SyntaxError: invalid syntax
|
38
|
+
|
39
|
+
>>>
|
40
|
+
|
41
|
+
|
26
42
|
|
27
43
|
|
28
44
|
|
2
誤字
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ジャンケンのゲームを作成しているのですがelifで使い方が分からない部分があります
|
1
|
+
ジャンケンのゲームを作成しているのですがelifで使い方が分からない部分があります python3.6.5です
|
test
CHANGED
File without changes
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,7 +6,9 @@
|
|
6
6
|
|
7
7
|
### 該当のソースコード
|
8
8
|
|
9
|
+
import random
|
9
10
|
|
11
|
+
winner=''
|
10
12
|
|
11
13
|
random_choice=random.randint(0,2)
|
12
14
|
|