【python】Mac os M系上turtle库无法使用
问题背景
IDE: VSCode
import turtle
turtle.forward(20)
warning:The system version of Tk is deprecated and may be removed in a future release. Please don't rely on it. Set TK SILENCE DEPRECATION=1 to suppress this warning.
问题解决
- 原因:由于环境系统自带的Tk版本号较低导致
- 方案:升级tk