随笔分类 -  Python练习

摘要:0.题目如下: Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1 阅读全文
posted @ 2017-09-21 13:08 人生入戏 阅读(198) 评论(0) 推荐(0)
摘要:0.题目如下: By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the 10 001st prime number? 1.先理解什 阅读全文
posted @ 2017-09-20 13:17 人生入戏 阅读(187) 评论(0) 推荐(0)
摘要:练习题1. 请使用python, 对下面的函数进行处理, 在函数被调用时打印耗时详情 答案: 用到了装饰器,一个很简单的装饰器 贴出代码如下: 运行结果: 阅读全文
posted @ 2017-08-13 22:12 人生入戏 阅读(644) 评论(0) 推荐(0)