作者doomleika (iSuck)
看板Python
标题[问题] [[]foo]是甚麽意思?
时间Thu May 23 00:12:24 2013
各位好,最近在研究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
1F:→ timTan:我怀疑Google Typo..... 05/23 00:18
※ 编辑: doomleika 来自: 1.170.8.50 (05/23 00:31)