我想使用 python 修改 hostapd 配置文件
#
# Wireless Interface
#
interface=wlp2s0
driver=nl80211
#
# Wireless Environment
#
# Currently not working due to
# regulatory restrictions on 5GHz wifi
# in driver
#
ssid=bobthebuilder
hw_mode=a
ieee80211d=1
country_code=GB
channel=40
ieee80211n=1
Run Code Online (Sandbox Code Playgroud)
(等等)
但是configparser库需要使用配置部分的头文件 - 我们还有另一个库可以用来编辑这个文件吗?
python ×1