[問題] [[]foo]是甚麼意思?

看板Python作者 (iSuck)時間12年前 (2013/05/23 00:12), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/1
各位好,最近在研究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

05/23 00:18, , 1F
我懷疑Google Typo.....
05/23 00:18, 1F
※ 編輯: doomleika 來自: 1.170.8.50 (05/23 00:31)
文章代碼(AID): #1HdEvibQ (Python)
文章代碼(AID): #1HdEvibQ (Python)