📜  在 python 代码示例中使用库

📅  最后修改于: 2022-03-11 14:46:38.640000             🧑  作者: Mango

代码示例1
# Method 01
# Load the library module named "random"
import random
# Use a sub-function from that specific library
random.randint()

# Method 02
# Only load a specific funcion from a library
from random import randint
# Then use the sub-function
randint()

# Method 03
from random import *