[解决了]

[解决了]



[Copy to clipboard] [ - ]
CODE:
urls = ['www.baidu.com','www.google.cn']

def func():
    for i in range(0,len(urls)):
        ....

程序提示:
for i in range(0,len[urls]):
TypeError: 'builtin_function_or_method' object is unsubscriptable
不知何解?高手指教。

解决。粗心。