[問題] [[]foo]是甚麼意思?
各位好,最近在研究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
05/23 00:18, 1F
※ 編輯: doomleika 來自: 1.170.8.50 (05/23 00:31)
Python 近期熱門文章
PTT數位生活區 即時熱門文章