Python代码:使用turtle模块绘制心形线 import turtle as t # 设置画笔颜色和宽度 t.pencolor('red') t.pensize(5) # 绘制爱心线的左半部分 t.left(45) t