except Exception,e:
print ('simi except',e)
if len(dic)>20:
logout(dic)
dic.clear()
不清楚你的python版本是啥,2.*的使用逗号,3.*的使用as,代码示例如下
except Exception as e:
print ('simi except',e)
if len(dic)>20:
logout(dic)
dic.clear()
python3的解决办法:
except Exception as e: