运行项目时发现前台登录和注册的验证码抽经了,很大概率刷不出来,如下图:
也有一定概率刷出来,报错信息是:OSError: cannot open resource
后来发现这个跟我选的验证码的字体有关:
选了四个字体,之前还好好的,现在怎么就不行了呢?
打开c盘下的Windows下的Fonts,发现这四个字体有三个都找不到了!所以成功概率是25%。
还是另选字体吧~