質問編集履歴

2

初心者ボタン

2019/03/05 13:39

投稿

yiolino
yiolino

スコア13

test CHANGED
File without changes
test CHANGED
File without changes

1

HTMLの追加

2019/03/05 13:39

投稿

yiolino
yiolino

スコア13

test CHANGED
@@ -1 +1 @@
1
- [python] :int の意味について
1
+ [python]変数名における「:intの意味がわかりません。
test CHANGED
@@ -2,9 +2,17 @@
2
2
 
3
3
  現在github上で公開されているコード内容を追っているのですが、変数の設定において下記の様な表記があります。
4
4
 
5
- * n_class:int = 1
5
+ ```html
6
6
 
7
+ n_class:int = 1
8
+
9
+
10
+
7
- * h1: Variable = F.leaky_relu(self.conv1(x), negative_slope=0.2)
11
+ h1: Variable = F.leaky_relu(self.conv1(x), negative_slope=0.2)
12
+
13
+ ```
14
+
15
+
8
16
 
9
17
 
10
18