質問編集履歴
1
書式改善
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,21 +1,4 @@
|
|
1
|
-
### 前提・実現したいこと
|
2
|
-
pythonでじゃんけんゲームをつくりたいです
|
3
|
-
|
4
|
-
|
5
|
-
### 発生している問題・エラーメッセージ
|
6
|
-
|
7
|
-
TypeError Traceback (most recent call last)
|
8
|
-
<ipython-input-8-285d7559df91> in <module>()
|
9
|
-
28 you_hand = get_you_hand
|
10
|
-
29
|
11
|
-
---> 30 hand_diff = my_hand - you_hand
|
12
|
-
31 view_hand(hand_diff)
|
13
|
-
|
14
|
-
TypeError: unsupported operand type(s) for -: 'function' and 'function'
|
15
|
-
|
16
|
-
### 該当のソースコード
|
17
|
-
|
18
|
-
import random
|
1
|
+
```import random
|
19
2
|
def start_messege():
|
20
3
|
print('じゃんけんスタート')
|
21
4
|
|
@@ -46,6 +29,26 @@
|
|
46
29
|
|
47
30
|
hand_diff = my_hand - you_hand
|
48
31
|
view_hand(hand_diff)
|
32
|
+
```### 前提・実現したいこと
|
33
|
+
pythonでじゃんけんゲームをつくりたいです
|
34
|
+
|
35
|
+
|
36
|
+
### 発生している問題・エラーメッセージ
|
37
|
+
```
|
38
|
+
TypeError Traceback (most recent call last)
|
39
|
+
<ipython-input-8-285d7559df91> in <module>()
|
40
|
+
28 you_hand = get_you_hand
|
41
|
+
29
|
42
|
+
---> 30 hand_diff = my_hand - you_hand
|
43
|
+
31 view_hand(hand_diff)
|
44
|
+
|
45
|
+
TypeError: unsupported operand type(s) for -: 'function' and 'function'
|
46
|
+
|
47
|
+
```
|
48
|
+
|
49
|
+
### 該当のソースコード
|
50
|
+
|
51
|
+
|
49
52
|
### 試したこと
|
50
53
|
|
51
54
|
ここに問題に対して試したことを記載してください。
|