if

    技术2025-06-01  18

    if __name__ == "__main__": 代码块

    文件作为脚本直接运行会运行后面的代码块 文件作为模块import 导入到其他程序中不运行后面的代码块

    Processed: 0.009, SQL: 9