且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

python - 怎么写才合适才优雅

更新时间:2023-12-03 21:01:22

_list = ('会话数', '失效数', '连接数')

for index, c in enumerate(_list):
    try:
        res+="{}<span style='color: blue;'> ".format(c) + str(info[index + 1]).strip('\n')"</span><br>"
    except Exception,e:
        print e