标签: python python-3.x spyder shapely
我有以下在 Spyder 中运行的非常简单的代码。但是每次我将它作为 test(0) 执行时,Python 都会说“ 正在重新启动内核..." 并且没有产生任何输出
from shapely.geometry import Polygon def test(x): p = Polygon([[x, 0], [1, 0], [1, 1], [0, 1], [0, 0]])
有人知道是什么问题吗?
这个问题似乎只是源于这个多边形的构造。