Python Quiz & Python Exercise
https://www.w3schools.com/quiztest/quiztest.asp?qtest=PYTHON
https://www.w3schools.com/python/python_quiz.asp
https://www.w3schools.com/quiztest/result.asp
Python Exercise
python modules
https://www.w3schools.com/python/python_modules.asp
https://www.w3schools.com/python/exercise.asp?filename=exercise_modules1
https://www.w3schools.com/python/exercise.asp?filename=exercise_modules2
https://www.w3schools.com/python/exercise.asp?filename=exercise_modules3
https://www.w3schools.com/python/exercise.asp?filename=exercise_modules4
# 导入整个模块
import module
# 导入整个模块,并使用 alias 别名重命名
import module as alias
# list all function names & var names
import module
# dir 列出模块的所有函数名和变量名
functions = dir(module)
print(functions)
# 导入部分模块的函数
form module import function
Built-in Modules / 全局模块
# 内置模块
import platform
system = platform.system()
print(system)
refs
https://www.w3schools.com/python/python_modules.asp
https://www.runoob.com/python3/python3-module.html
basic
https://www.runoob.com/python3/python3-list.html
https://www.runoob.com/python3/python3-tuple.html
https://www.runoob.com/python3/python3-set.html
https://www.runoob.com/python3/python3-dictionary.html
https://www.runoob.com/python3/python3-iterator-generator.html
https://www.runoob.com/python3/python3-loop.html
https://www.runoob.com/python3/python3-conditional-statements.html
advanced
©xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!