start.py 文件源码

python
阅读 46 收藏 0 点赞 0 评论 0

项目:WebSecurityEverywhere 作者: McuMirror 项目源码 文件源码
def saveSettings():
    print "- Saving settings"
    try:
        outfile = open('config.pkl', 'wb')
        # Use a dictionary (rather than pickling 'raw' values) so
        # the number & order of things can change without breaking.
        print("-- ok")
        d = { 
            'displayDelay' : displayDelay,
            'countryBlocked' : countryBlocked,
            'countryForced' : countryForced,
            'WifiAPkeyLenght' : WifiAPkeyLenght
            }
        pickle.dump(d, outfile)
        outfile.close()
    except:
        print("-- error")
        pass
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号