摘要: Question:I was testing some code on Coliru, and I got a strange output. I went down the code and could reproduce it with this simple p... 阅读全文
posted @ 2015-03-25 11:13 vigorpush 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Question:>>> timeit.timeit("'x' in ('x',)")0.04869917374131205>>> timeit.timeit("'x' == 'x'")0.06144205736110564Also works for multipl... 阅读全文
posted @ 2015-03-25 11:11 vigorpush 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Quesion:My question arises from one of my c++ exercises (from Programming Abstraction in C++, 2012 version, Exercise 12.2). Here it is... 阅读全文
posted @ 2015-03-25 11:03 vigorpush 阅读(159) 评论(0) 推荐(0) 编辑