Python propertyId:str SyntaxError:无效语法

时间:2019-05-23 17:48:41

标签: python python-3.x

我有一个像这样的python类

class Property:
    propertyId: str

它说

propertyId: str
              ^
SyntaxError: invalid syntax

它在使用python 3.7的Mac Mojave OS上运行良好 但是在ubuntu服务器上却不起作用。

有什么想法吗?

0 个答案:

没有答案