This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
Fire 使用 `inspect` 模块分析对象,提取其方法、属性和文档字符串等信息后,接下来就会创建命令了,它会对于对象里的每一个方法,创建一个同名命令,这些方法的参数就会成为命令的参数,命令创建完成后,接下来fire会进行参数解析,使用`argparse` 模块解析命令行参数,并且它会自动将参数值转换为适当的数据类型,并根据方法的参数注释进行验证,这样当命令被调用时,fire使用解析后的参数调用相应的方法。