Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

use a library in python

# 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 *

Source by pypi.org #
 
PREVIOUS NEXT
Tagged: #library #python
ADD COMMENT
Topic
Name
1+8 =