我试图使用配置解析器读取一个布尔值,它发现这个部分很好,但是由于某种原因它找不到选项。configparser.NoOptionError: No option 'firsttime' in section: 'DEFAULT'[DEFAULT]我的主文件夹里有:
import configparser
coordinate of the end of the domain#external radius我想创建一个Python脚本,它回调这个txt文件并使用那个变量')
file.write("XYZ cspline\n")
我希望这段Python代码从txt文件中获取变量的值,因为我需要修改这些变量,因此从外部txt文件中可以更