【发布时间】:2020-06-04 03:16:26
【问题描述】:
我在常规 python 中使用星号表示法:
>>> x=(10,11)
>>> y=(12,13)
>>> z=99
>>> print(*x)
10 11
>>> print(*x, *y, z)
10 11 12 13 99
但是当我尝试在处理的 python 模式下做类似的事情时,它本质上给了我一个语法错误:processing.app.SketchException: Maybe there's an unclosed paren or quote mark somewhere before this line?
p1= (20,20)
p2=(40,40)
c1 = (15,15)
c2 = (50,50)
print(p1)
print(*p1)
# bezier(**p1, **c1, **c2, **p2)
Processing.PY 不支持这个吗?
【问题讨论】:
-
Python 处理模式的语法有限。
-
@KlausD。我不同意您的评论,Python 模式具有 完整 Python 2 工作语法和 Python 标准库的非常完整的 Jython 实现。
标签: python processing