在 Linux 上画心,可以使用 Python 的 turtle 库。首先确保已经安装了 Python,然后按照以下步骤操作:

1. 打开终端,输入以下命令安装 turtle 库(如果尚未安装):
```
pip install PythonTurtle
```
2. 创建一个名为 heart.py 的文件,并在其中输入以下代码:
```python
import turtle
def draw_heart():
turtle.color("red")
turtle.begin_fill()
turtle.left(140)
turtle.forward(180)
turtle.circle(-90, 200)
turtle.right(140)
turtle.circle(-90, 200)
turtle.forward(180)
turtle.end_fill()
turtle.done()
if __name__ == "__main__":
draw_heart()
```
3. 保存文件后,在终端中导航到 heart.py 文件所在的目录,然后运行以下命令:
```
python heart.py
```
这将使用 turtle 库在屏幕上绘制一个红色的心形。