jxr*_*mos 8 python python-2to3
我有点困惑,为什么2to3要麻烦拥抱我已经采用功能样式的打印参数,将其包装在一组额外的括号中。例如
print("\t[Warn] Can not connect {}".format(ssid))
Run Code Online (Sandbox Code Playgroud)
变成
print(("\t[Warn] Can not connect {}".format(ssid)))
Run Code Online (Sandbox Code Playgroud)
这些本质上是保守的假阳性吗?我在想,也许)format函数的尾部抛出了它的逻辑。