teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

2

追記

2019/06/20 06:30

投稿

quickquip
quickquip

スコア11314

answer CHANGED
@@ -1,5 +1,11 @@
1
+ `as`
1
2
  ```python
2
3
  # b1.py
3
4
  from a2.b2 import func as func_a2_b2
4
5
  ```
5
- など別の名前に束縛します。
6
+ など別の名前に束縛します。
7
+
8
+ ----
9
+
10
+ [https://docs.python.org/ja/3/tutorial/modules.html#executing-modules-as-scripts](https://docs.python.org/ja/3/tutorial/modules.html#executing-modules-as-scripts)
11
+ のアンカーのちょっと上です。

1

明示

2019/06/20 06:30

投稿

quickquip
quickquip

スコア11314

answer CHANGED
@@ -1,4 +1,5 @@
1
1
  ```python
2
+ # b1.py
2
3
  from a2.b2 import func as func_a2_b2
3
4
  ```
4
5
  などで別の名前に束縛します。