运行时报错统计
报错 :
python TypeError: unsupported operand type(s) for +: 'int' and 'str'
driver = webdriver.Remote("http://" + str(data["ip"]) + ":" + str(data["port"] + "/wd/hub",desired_caps))
python TypeError: unsupported operand type(s) for +: 'int' and 'str'
“+” 在python中有两个作用
一个是数学运算符,是用来在整型、浮点型等数学之间进行加法操作的。
另一个是用来进行字符串连接的。所以当你的“+”出现在即有数学运算和字符连接的情况下,计算机根本不知道哪两个是要进行字符串连接,哪两个之间要进行数学运算。

浙公网安备 33010602011771号