我正在制作一个 python 项目,我需要在屏幕上打印规则。我正在使用 simplegui 模块,这就是我所拥有的。
text = """You will be given a number
and a number of operations. The number
on the top is the answer to the problem.
You must fill the blanks with numbers that
make the answer. Hit enter when you are
done, hit delete to go back."""
canvas.draw_text(text, (150, 250), 30, 'white')
它给了我错误:
ValueError: text may not contain non-printing characters
我怎样才能修复这个错误?