.cnblogs 模拟登录时出现几个错误
来源:4-8 . cnblogs模拟登录(新增内容)
红萼
2021-11-30
Chrome : 版本 96.0.4664.45(正式版本) (64 位)
操作系统 : Windows 10 64 bit [10.0.19042]
python : Python 3.9.4
在 .cnblogs 模拟登录时出现如下几个错误:
-
raise RuntimeError(’’'
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.This probably means that you are not using fork to start your child processes and you have forgotten to use the proper idiom in the main module: if __name__ == '__main__': freeze_support() ... The "freeze_support()" line can be omitted if the program is not going to be frozen to produce an executable. -
AttributeError: ‘Chrome’ object has no attribute ‘service’
上网查询答案无法解决,请求大家帮助,谢谢!
写回答
2回答
-
我刚刚网上搜到答案,在main页中加入这句话“if __name__ == '__main__':”,就没出现了
042022-02-10 -
慕神2158989
2021-12-01
我也是同样的问题
00
相似问题