python oserror 除零,Python:除OSError外,e:

I'm currently developing a website with the SST - Web Test Framework (i'm very beginner) but I have a problem with python

I m using - Python 3.6.4 and SST - Web Test Framework- Latest Version: 0.2.4

My Code is:

from sst.actions import *

go_to('http://www.google.com/')

Error is:

C:\Python\scrapy-master\Projects>python proxyhar.py

Traceback (most recent call last):

File "proxyhar.py", line 1, in

from sst.actions import *

File "C:\Python\lib\site-packages\sst\actions.py", line 274, in

except OSError, e:

^

SyntaxError: invalid syntax

Anyone suggest me how to resolve this.

Thank you

解决方案

Python 3 has changed how this expression should be written. From the documentation, it is now except OSError as e.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值