更新时间: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
python - 怎么写才合适才优雅