質問編集履歴

3

リンク修正

2017/02/07 02:01

投稿

nesheep5
nesheep5

スコア50

test CHANGED
File without changes
test CHANGED
@@ -4,9 +4,7 @@
4
4
 
5
5
 
6
6
 
7
- [サンプルソース](
8
-
9
- https://github.com/oreilly-japan/deep-learning-from-scratch/blob/master/common/layers.py)
7
+ https://github.com/oreilly-japan/deep-learning-from-scratch/blob/master/common/layers.py
10
8
 
11
9
 
12
10
 
@@ -22,9 +20,9 @@
22
20
 
23
21
  Pythonのファイルはモジュールなので、まとめて管理されるべきクラスならひとつのファイルに定義しても良い、とのことでした。
24
22
 
25
- [Pythonで一つのファイルにクラスを複数定義するべきか?](
26
23
 
24
+
27
- http://gogochephy.hatenablog.com/entry/2015/06/29/111833)
25
+ http://gogochephy.hatenablog.com/entry/2015/06/29/111833
28
26
 
29
27
 
30
28
 

2

リンク修正

2017/02/07 02:01

投稿

nesheep5
nesheep5

スコア50

test CHANGED
File without changes
test CHANGED
@@ -4,7 +4,9 @@
4
4
 
5
5
 
6
6
 
7
+ [サンプルソース](
8
+
7
- https://github.com/oreilly-japan/deep-learning-from-scratch/blob/master/common/layers.py
9
+ https://github.com/oreilly-japan/deep-learning-from-scratch/blob/master/common/layers.py)
8
10
 
9
11
 
10
12
 
@@ -20,7 +22,9 @@
20
22
 
21
23
  Pythonのファイルはモジュールなので、まとめて管理されるべきクラスならひとつのファイルに定義しても良い、とのことでした。
22
24
 
25
+ [Pythonで一つのファイルにクラスを複数定義するべきか?](
26
+
23
- http://gogochephy.hatenablog.com/entry/2015/06/29/111833
27
+ http://gogochephy.hatenablog.com/entry/2015/06/29/111833)
24
28
 
25
29
 
26
30
 

1

補足追加

2017/02/07 02:00

投稿

nesheep5
nesheep5

スコア50

test CHANGED
File without changes
test CHANGED
@@ -11,3 +11,17 @@
11
11
  Javaでは(インナークラスなどあるにせよ)1ファイル1クラスが一般的ですが、
12
12
 
13
13
  Pythonの慣習では1ファイルに複数クラス記述するのは一般的なのでしょうか?
14
+
15
+
16
+
17
+ 補足:
18
+
19
+ 以下のような記事を見つけました。
20
+
21
+ Pythonのファイルはモジュールなので、まとめて管理されるべきクラスならひとつのファイルに定義しても良い、とのことでした。
22
+
23
+ http://gogochephy.hatenablog.com/entry/2015/06/29/111833
24
+
25
+
26
+
27
+ 日常的にPythonを使用している方の肌感をお伺いしたいなと思っています。