# -*- coding: UTF-8 -*-
# 作者：huanhuilong
# 标题：Python code object
# 描述：动态编译 Python 字符串代码，并执行，输出两次 Hello,world!


if __name__ == "__main__":
    code_str = """
print("Hello,world!")
print("Hello,world!")
"""
    code_obj = compile(code_str, '<string>', 'exec')
    exec(code_obj)
    print(code_obj.co_name)
    print(code_obj.co_filename)
    print(code_obj.co_argcount)
    print(code_obj.co_varnames)
