回答編集履歴

1

書式の改善

2020/11/23 07:42

投稿

jbpb0
jbpb0

スコア7651

test CHANGED
@@ -1,4 +1,6 @@
1
1
  fourteenlengthさんが上げてくれた画像を使ってやってみたら、「B mode:4」と表示されました
2
+
3
+ ```python
2
4
 
3
5
  import numpy as np
4
6
 
@@ -12,10 +14,16 @@
12
14
 
13
15
  print("B mode:"+str(Bmode))
14
16
 
17
+ ```
18
+
15
19
 
16
20
 
17
21
  確認したら、0を除外したら、やはり4が個数最大でした
18
22
 
23
+ ```python
24
+
19
25
  histogram, _ = np.histogram(Brow.flatten(), bins=np.arange(np.max(Brow)+2))
20
26
 
21
27
  print(histogram)
28
+
29
+ ```