質問編集履歴

6

書式の改善

2016/07/19 10:43

投稿

MasatakaMiyoshi
MasatakaMiyoshi

スコア109

test CHANGED
File without changes
test CHANGED
@@ -7,6 +7,8 @@
7
7
 
8
8
 
9
9
 
10
+
11
+ ```Python
10
12
 
11
13
  class Foo(object):
12
14
 
@@ -30,7 +32,13 @@
30
32
 
31
33
 
32
34
 
35
+ ```
36
+
37
+
38
+
33
39
 
40
+
41
+ ```Python
34
42
 
35
43
  class Foo(object):
36
44
 
@@ -48,6 +56,10 @@
48
56
 
49
57
  self.y = do_something(self.x)
50
58
 
59
+ ```
60
+
61
+
62
+
51
63
 
52
64
 
53
65
  ①は、calc_yで使用する変数を明示しているので、クラス変数xの変更がこれに影響すること、変数zの変更はこれに全く影響しないことが明示されます。

5

2016/07/19 10:43

投稿

MasatakaMiyoshi
MasatakaMiyoshi

スコア109

test CHANGED
File without changes
test CHANGED
@@ -50,7 +50,7 @@
50
50
 
51
51
 
52
52
 
53
- ①は、calc_yで使用する明示しているので、クラス変数変数xの変更がこれに影響すること、変数zの変更はこれに全く影響しないことが明示されます。
53
+ ①は、calc_yで使用する変数を明示しているので、クラス変数xの変更がこれに影響すること、変数zの変更はこれに全く影響しないことが明示されます。
54
54
 
55
55
 
56
56
 

4

2016/05/30 05:02

投稿

MasatakaMiyoshi
MasatakaMiyoshi

スコア109

test CHANGED
File without changes
test CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  class Foo(object):
12
12
 
13
- def ¥__init¥__(self, n):
13
+ def __init__(self, n):
14
14
 
15
15
  self.x = n
16
16
 
@@ -34,7 +34,7 @@
34
34
 
35
35
  class Foo(object):
36
36
 
37
- def \__init¥__(self, n):
37
+ def __init__(self, n):
38
38
 
39
39
  self.x = n
40
40
 

3

2016/05/30 04:51

投稿

MasatakaMiyoshi
MasatakaMiyoshi

スコア109

test CHANGED
File without changes
test CHANGED
@@ -10,21 +10,21 @@
10
10
 
11
11
  class Foo(object):
12
12
 
13
- def ¥_¥_init¥_¥_(self, n):
13
+ def ¥__init¥__(self, n):
14
14
 
15
15
  self.x = n
16
16
 
17
17
  self.z = 3
18
18
 
19
- self.y = self.calc¥_y(x)
19
+ self.y = self.calc_y(x)
20
20
 
21
21
 
22
22
 
23
23
  @staticmethod
24
24
 
25
- def calc¥_y(x):
25
+ def calc_y(x):
26
26
 
27
- y = do¥_something(x)
27
+ y = do_something(x)
28
28
 
29
29
  return y
30
30
 
@@ -34,23 +34,23 @@
34
34
 
35
35
  class Foo(object):
36
36
 
37
- def ¥_¥_init¥_¥_(self, n):
37
+ def \__init¥__(self, n):
38
38
 
39
39
  self.x = n
40
40
 
41
41
  self.z = 3
42
42
 
43
- self.set¥_y()
43
+ self.set_y()
44
44
 
45
45
 
46
46
 
47
- def set¥_y(self):
47
+ def set_y(self):
48
48
 
49
- self.y = do¥_something(self.x)
49
+ self.y = do_something(self.x)
50
50
 
51
51
 
52
52
 
53
- ①は、calc¥_yで使用する明示しているので、クラス変数変数xの変更がこれに影響すること、変数zの変更はこれに全く影響しないことが明示されます。
53
+ ①は、calc_yで使用する明示しているので、クラス変数変数xの変更がこれに影響すること、変数zの変更はこれに全く影響しないことが明示されます。
54
54
 
55
55
 
56
56
 

2

2016/05/30 04:49

投稿

MasatakaMiyoshi
MasatakaMiyoshi

スコア109

test CHANGED
File without changes
test CHANGED
@@ -10,21 +10,21 @@
10
10
 
11
11
  class Foo(object):
12
12
 
13
- def \_\_init\_\_(self, n):
13
+ def ¥_¥_init¥_¥_(self, n):
14
14
 
15
15
  self.x = n
16
16
 
17
17
  self.z = 3
18
18
 
19
- self.y = self.calc\_y(x)
19
+ self.y = self.calc¥_y(x)
20
20
 
21
21
 
22
22
 
23
23
  @staticmethod
24
24
 
25
- def calc\_y(x):
25
+ def calc¥_y(x):
26
26
 
27
- y = do\_something(x)
27
+ y = do¥_something(x)
28
28
 
29
29
  return y
30
30
 
@@ -34,23 +34,23 @@
34
34
 
35
35
  class Foo(object):
36
36
 
37
- def \_\_init\_\_(self, n):
37
+ def ¥_¥_init¥_¥_(self, n):
38
38
 
39
39
  self.x = n
40
40
 
41
41
  self.z = 3
42
42
 
43
- self.set\_y()
43
+ self.set¥_y()
44
44
 
45
45
 
46
46
 
47
- def set\_y(self):
47
+ def set¥_y(self):
48
48
 
49
- self.y = do\_something(self.x)
49
+ self.y = do¥_something(self.x)
50
50
 
51
51
 
52
52
 
53
- ①は、calc\_yで使用する明示しているので、クラス変数変数xの変更がこれに影響すること、変数zの変更はこれに全く影響しないことが明示されます。
53
+ ①は、calc¥_yで使用する明示しているので、クラス変数変数xの変更がこれに影響すること、変数zの変更はこれに全く影響しないことが明示されます。
54
54
 
55
55
 
56
56
 

1

2016/05/30 04:48

投稿

MasatakaMiyoshi
MasatakaMiyoshi

スコア109

test CHANGED
File without changes
test CHANGED
@@ -10,21 +10,21 @@
10
10
 
11
11
  class Foo(object):
12
12
 
13
- def __init__(self, n):
13
+ def \_\_init\_\_(self, n):
14
14
 
15
15
  self.x = n
16
16
 
17
17
  self.z = 3
18
18
 
19
- self.y = self.calc_y(x)
19
+ self.y = self.calc\_y(x)
20
20
 
21
21
 
22
22
 
23
23
  @staticmethod
24
24
 
25
- def calc_y(x):
25
+ def calc\_y(x):
26
26
 
27
- y = do_something(x)
27
+ y = do\_something(x)
28
28
 
29
29
  return y
30
30
 
@@ -34,23 +34,23 @@
34
34
 
35
35
  class Foo(object):
36
36
 
37
- def __init__(self, n):
37
+ def \_\_init\_\_(self, n):
38
38
 
39
39
  self.x = n
40
40
 
41
41
  self.z = 3
42
42
 
43
- self.set_y()
43
+ self.set\_y()
44
44
 
45
45
 
46
46
 
47
- def set_y(self):
47
+ def set\_y(self):
48
48
 
49
- self.y = do_something(self.x)
49
+ self.y = do\_something(self.x)
50
50
 
51
51
 
52
52
 
53
- ①は、calc_yで使用する明示しているので、クラス変数変数xの変更がこれに影響すること、変数zの変更はこれに全く影響しないことが明示されます。
53
+ ①は、calc\_yで使用する明示しているので、クラス変数変数xの変更がこれに影響すること、変数zの変更はこれに全く影響しないことが明示されます。
54
54
 
55
55
 
56
56