Python入門-基本的種import方法

Water GKK
Jun 17, 2021

# standard import (最基本的方式)
import time

# import and give alias (引入模組後,用as幫他取暱稱)
import random as rd

# precise import (使用import … from …的語法,從某套件中拿出特定的功能)
from pathlib import Path

# useless statement
from datetime import *

--

--