[/quote]
字符串前不加 r 试试。因理论上 r 只影响反斜杠 '\' 的解读
[/quote]
如果字符串前不加r的话,执行结果如下。
代码:
python shuaboqi.py
请输入您要刷博的网址:www.baidu.com
请输入您要刷博的次数:10
[2474:2474:1019/144318:ERROR:logging.h(808)] Failed to call method: org.freedesktop.DBus.ObjectManager.GetManagedObjects: object_path= /: org.freedesktop.DBus.Error.UnknownMethod: Method "GetManagedObjects" with signature "" on interface "org.freedesktop.DBus.ObjectManager" doesn't exist
[2474:2474:1019/144318:ERROR:logging.h(808)] Failed to call method: org.freedesktop.DBus.ObjectManager.GetManagedObjects: object_path= /: org.freedesktop.DBus.Error.UnknownMethod: Method "GetManagedObjects" with signature "" on interface "org.freedesktop.DBus.ObjectManager" doesn't exist
已在现有的浏览器会话中创建新的窗口。
已在现有的浏览器会话中创建新的窗口。
已在现有的浏览器会话中创建新的窗口。
已在现有的浏览器会话中创建新的窗口。
已在现有的浏览器会话中创建新的窗口。
已在现有的浏览器会话中创建新的窗口。
已在现有的浏览器会话中创建新的窗口。
已在现有的浏览器会话中创建新的窗口。
已在现有的浏览器会话中创建新的窗口。
wlp2s0@wlp2s0-computer:~/文档/python$ [2474:2474:1019/144327:ERROR:zygote_host_impl_linux.cc(543)] Failed to send GetTerminationStatus message to zygote
[2474:2474:1019/144327:ERROR:zygote_host_impl_linux.cc(543)] Failed to send GetTerminationStatus message to zygote
[2474:2474:1019/144327:ERROR:zygote_host_impl_linux.cc(543)] Failed to send GetTerminationStatus message to zygote
[2474:2474:1019/144327:ERROR:zygote_host_impl_linux.cc(543)] Failed to send GetTerminationStatus message to zygote
[2474:2474:1019/144327:ERROR:zygote_host_impl_linux.cc(543)] Failed to send GetTerminationStatus message to zygote
[2474:2474:1019/144327:ERROR:zygote_host_impl_linux.cc(543)] Failed to send GetTerminationStatus message to zygote
[2474:2474:1019/144327:ERROR:zygote_host_impl_linux.cc(543)] Failed to send GetTerminationStatus message to zygote
[2474:2474:1019/144327:ERROR:zygote_host_impl_linux.cc(543)] Failed to send GetTerminationStatus message to zygote
[2474:2474:1019/144327:ERROR:zygote_host_impl_linux.cc(543)] Failed to send GetTerminationStatus message to zygote
[2474:2474:1019/144327:ERROR:zygote_host_impl_linux.cc(543)] Failed to send GetTerminationStatus message to zygote
[2474:2474:1019/144327:ERROR:zygote_host_impl_linux.cc(543)] Failed to send GetTerminationStatus message to zygote
[2474:2474:1019/144327:ERROR:zygote_host_impl_linux.cc(543)] Failed to send GetTerminationStatus message to zygote
[2474:2474:1019/144327:ERROR:zygote_host_impl_linux.cc(543)] Failed to send GetTerminationStatus message to zygote
[2474:2474:1019/144327:ERROR:zygote_host_impl_linux.cc(543)] Failed to send GetTerminationStatus message to zygote
[2474:2474:1019/144327:ERROR:zygote_host_impl_linux.cc(543)] Failed to send GetTerminationStatus message to zygote
加r的执行结果如下:
代码:
wlp2s0@wlp2s0-computer:~/文档/python$ python shuaboqi.py
请输入您要刷博的网址:www.baidu.com
请输入您要刷博的次数:10
已在现有的浏览器会话中创建新的窗口。
已在现有的浏览器会话中创建新的窗口。
已在现有的浏览器会话中创建新的窗口。
已在现有的浏览器会话中创建新的窗口。
已在现有的浏览器会话中创建新的窗口。
已在现有的浏览器会话中创建新的窗口。
已在现有的浏览器会话中创建新的窗口。
已在现有的浏览器会话中创建新的窗口。
已在现有的浏览器会话中创建新的窗口。
已在现有的浏览器会话中创建新的窗口。
结论,上面的错误提示我没看懂,看来还是应该加。