質問編集履歴

1

内容の追加

2018/12/20 13:30

投稿

pino_python
pino_python

スコア13

test CHANGED
File without changes
test CHANGED
@@ -21,6 +21,8 @@
21
21
  <python>
22
22
 
23
23
 
24
+
25
+ ```python
24
26
 
25
27
  import sys
26
28
 
@@ -54,7 +56,49 @@
54
56
 
55
57
  moon_weight()
56
58
 
59
+ ```
57
60
 
61
+ トレースバック
62
+
63
+ ```
64
+
65
+ how is your weight on the earth?
66
+
67
+ Traceback (most recent call last):
68
+
69
+ File "<ipython-input-89->", line 1, in <module>
70
+
71
+ runfile('ファイル名')
72
+
73
+
74
+
75
+ File "", line 710, in runfile
76
+
77
+ execfile(filename, namespace)
78
+
79
+
80
+
81
+ File "/anaconda3/lib/python3.6/site-packages/spyder/utils/site/sitecustomize.py", line 101, in execfile
82
+
83
+ exec(compile(f.read(), filename, 'exec'), namespace)
84
+
85
+
86
+
87
+ File "ファイル名", line 24, in <module>
88
+
89
+ moon_weight()
90
+
91
+
92
+
93
+ File "ファイル名", line 11, in moon_weight
94
+
95
+ first_weight = int(sys.stdin.readline())
96
+
97
+
98
+
99
+ ValueError: invalid literal for int() with base 10: ''
100
+
101
+ ```
58
102
 
59
103
 
60
104