【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.

问题解决

  1. 原因:由于环境系统自带的Tk版本号较低导致
  2. 方案:升级tk
posted @ 2022-12-09 15:12  鱼汤泡饭  阅读(98)  评论(0编辑  收藏  举报