看板 Python 關於我們 聯絡資訊
各位好,最近在研究google API(http://0rz.tw/sD6Fp ),裡面有一些奇怪的語法我不了 解:在裡面常常出現類似[[]foo]的語法,像是: authsub_token = parameters[[]'token' ] 或是 video_upload_state = upload_status[[]0] 或是 category=[[]gdata.media.Category( #blah pydev會認為這個語法是錯的,實際跑過(2.7與3.3)直譯器也不會過, File "<console>", line 1 post_url = response[[]0] ^ SyntaxError: invalid syntax 請問我是哪邊弄錯了?謝謝。 -- It's a funny thing, ambition. It can take one to sublime heights or harrowing depths. And sometimes they are one and the same. Roseburrow learned that lesson all too well. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 1.170.8.50
timTan:我懷疑Google Typo..... 05/23 00:18
※ 編輯: doomleika 來自: 1.170.8.50 (05/23 00:31)