python內置函數

print(locals()) #返回本地作用域中的所有名字 print(globals()) #返回全局作用域中的所有名字 global 變量 nonlocal 變量   迭代器.__next__() next(迭代器) 迭代器 = iter(可迭代的) 迭代器 = 可迭代的.__iter__()   range(1,2)是可迭代的,不是迭代器   help()幫助 help(str)   di
相關文章
相關標籤/搜索