您好,我有以下格式的文本。但我想轉換成字典。我正在使用此代碼轉換爲字典。但它不起作用。將文本轉換爲字典
dict((n,int(v)) for n,v in (a.split('=') for a in string.split()))
請有人幫幫我嗎?感謝
name = Kurradu
image =
image_size =
producer = P. Kiran
writer =
starring = Varun Sandesh,Neha Sharma
music = Achu
cinematography = Sarvesh Murari
editing =
distributor =
released = 12 November 2009
studio =
country = IND
你有什麼錯誤嗎?請精確'不行' – JMax