📜  如何在一行python代码示例中导入多个模块

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

代码示例1
#To import multiple modules in one-line in Python, do the following

import {module1 ex. pygame}, {module2 ex. random}, {module3 ex. math}
'''
the comma separates the modules which allows you to import multiple modules
in one line
'''