正如我們所知,Python:這個語法如何以及爲什麼起作用? {1,2,3,4}
{} # Represents a dict
而且
{'one': 1} # Again a dict
如何以及爲什麼這是一個集:
{'one', 'two', 'three', 'four'} # I thought it should give syntax error
但它給:
set(['one', 'two', 'three', 'four']) # Strange ?? [ Should this happen ? ]
您能提供與官方文檔討論相同的鏈接?
親愛的低調選民,在投票中沒有違法行爲。只需添加評論什麼是缺少/錯誤的呢? –
任何人都可以知道任何其他有線/衝突的Python語法? –