This action will force synchronization from pyminer/pyminer, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
import cgitbimport timeimport loggingfrom pyminer2.pmappmodern import mainimport ctypesimport platformif platform.system().lower() == 'windows':"""无论是点击bat还是在终端运行,如果你发现控制台窗口闪现一下就关闭了,那么就是由以下代码造成的。注释掉以下代码即可正常显示控制台。"""whnd = ctypes.windll.kernel32.GetConsoleWindow()if whnd != 0:ctypes.windll.user32.ShowWindow(whnd, 0)ctypes.windll.kernel32.CloseHandle(whnd)if __name__ == '__main__':t0 = time.time() # 开始时间# 异常处理设置cgitb.enable(format='text')# 日志设置logger = logging.getLogger(__name__)t2 = time.time() # 结束时间logging.info(f'time spent for importing modules {t2 - t0}') # 打印日志,启动耗时main()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。