摘要:
[c:\~]$ alter table tb_test add index index_chen("id") [c:\~]$ drop index index_chen on test_tb ; [c:\~]$ create index inex_names on test_tb ; 查询文件3-5 阅读全文
posted @ 2020-06-03 11:26
不带R的墨菲特
阅读(147)
评论(0)
推荐(0)
摘要:
def fib(n): a,b,count=0,1,0 while True: if count>n: return yield a a,b=b,a+b count +=1# 迭代器有两个基本的方法:iter() 和 next()。# 迭代器是访问元素的一种方式# 字符串,列表或元组对象都可用于创建 阅读全文
posted @ 2020-06-03 11:19
不带R的墨菲特
阅读(260)
评论(0)
推荐(0)
摘要:
迭代器(iterator) 实现了__iter__和__next__方法的对象都称为迭代器。迭代器是一个有状态的对象,在调用next() 的时候返回下一个值,如果容器中没有更多元素了,则抛出StopIteration异常。 迭代器是一种Lazy Load的模式,只有在调用时才生成值,没有调用的时候就 阅读全文
posted @ 2020-06-03 11:08
不带R的墨菲特
阅读(197)
评论(0)
推荐(0)