Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从 Python 字典中获取 NSDictionary(以便我可以调用description它)?
description
>>> d = NSDictionary.dictionaryWithDictionary_({"foo": "bar"}) >>> type(d) <objective-c class __NSDictionaryI at 0x7fff7ae34688> >>> d.description() u'{\n foo = bar;\n}' >>> d { foo = bar; } >>>