执行报错帮忙修复一下CUsersAdministratorDesktop截图python 1py File CUsersAdministratorDesktop截图1py line 360 print正在截图请稍等IndentationError expected an indented blockprint正在截图请稍等 sleep2 # 获取页面大小 if brows
您的代码缺少了 try 语句的开头,应该加上它,例如:
try: print('正在截图,请稍等...') sleep(2)
# 其他代码
# ...
except Exception as e: print('截图失败') print(e) print('===============================')
原文地址: https://www.cveoy.top/t/topic/byQ3 著作权归作者所有。请勿转载和采集!