在 Javascript 中,它将是:
var newObject = { 'propertyName' : 'propertyValue' };
newObject.propertyName; // returns "propertyValue"
但是 Python 中的相同语法会创建一个字典,这不是我想要的
new_object = {'propertyName': 'propertyValue'}
new_object.propertyName # raises an AttributeError