![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python练习
文章平均质量分 74
程序猿_存储研发
勤奋好学
展开
-
How to think like a Computer Scientist: 课后习题第六章 6-12
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 27/07/2013# Copyright: (c) penglaixy 2原创 2013-08-03 09:03:03 · 873 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第十七章4
#!/usr/bin/env pythonimport random, os.path#import basic pygame modulesimport pygamefrom pygame.locals import *#see if we can load more than standard BMPif not pygame.image.get_extended():原创 2013-09-15 15:45:56 · 759 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第十八章1
import turtleimport timedef koch(t, order, size): if order == 0: t.forward(size) else: for angle in [60, -120, 60, 0]: koch(t,order - 1, size/3) t.l原创 2013-09-15 19:50:22 · 486 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第十七章5
#!/usr/bin/env pythonimport random, os.path#import basic pygame modulesimport pygamefrom pygame.locals import *#see if we can load more than standard BMPif not pygame.image.get_extended():原创 2013-09-15 16:17:11 · 873 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第十五章1-5
#-------------------------------------------------------------------------------# Name: module2# Purpose:## Author: penglaixy## Created: 31/08/2013# Copyright: (c) penglaixy 2原创 2013-09-08 13:22:49 · 649 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第十五章6
#-------------------------------------------------------------------------------# Name: module2# Purpose:## Author: penglaixy## Created: 31/08/2013# Copyright: (c) penglaixy 2原创 2013-09-08 13:59:25 · 706 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第十四章4
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 31/08/2013# Copyright: (c) penglaixy 2原创 2013-08-31 20:27:53 · 531 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第十四章1
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 31/08/2013# Copyright: (c) penglaixy 2原创 2013-08-31 19:27:40 · 623 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第十四章2-3
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 31/08/2013# Copyright: (c) penglaixy 2原创 2013-08-31 19:26:13 · 868 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第十八章2
import turtleimport timedef torn(t, order, size): if order == 0: t.forward(size) else: for angle in [85, -170, 85, 0]: torn(t,order - 1, size/2) t.r原创 2013-09-15 20:40:25 · 573 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第十七章3
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 08/09/2013# Copyright: (c) penglaixy 2原创 2013-09-15 14:10:41 · 819 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第二十一章1-5
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 19/09/2013# Copyright: (c) penglaixy 2原创 2013-09-20 16:04:59 · 624 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第十九、二十章
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 19/09/2013# Copyright: (c) penglaixy 2原创 2013-09-19 14:31:59 · 764 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第十八章5-8
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 19/09/2013# Copyright: (c) penglaixy 2原创 2013-09-19 08:45:00 · 683 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第十八章4
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 18/09/2013# Copyright: (c) penglaixy 2原创 2013-09-18 21:01:15 · 686 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第十八章3
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 18/09/2013# Copyright: (c) penglaixy 2原创 2013-09-18 19:54:43 · 787 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第十八章9-11
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 19/09/2013# Copyright: (c) penglaixy 2原创 2013-09-19 10:05:26 · 641 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第十七章2
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 08/09/2013# Copyright: (c) penglaixy 2原创 2013-09-15 11:58:42 · 838 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第十四章5
#-------------------------------------------------------------------------------# Name: module2# Purpose:## Author: penglaixy## Created: 31/08/2013# Copyright: (c) penglaixy 2原创 2013-09-01 10:25:27 · 675 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第十二章 7、8
#-------------------------------------------------------------------------------# Name: wordtools.py# Purpose:## Author: penglaixy## Created: 17/08/2013# Copyright: (c) pengla原创 2013-08-17 23:59:26 · 784 阅读 · 0 评论 -
How to think like a computer scientist: 第四章 课后习题 1
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 27/07/2013# Copyright: (c) peng原创 2013-07-28 10:17:48 · 488 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第四章 10
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 27/07/2013# Copyright: (c) penglaixy 2原创 2013-07-28 22:32:40 · 506 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第三章 12题
import turtleimport timewn = turtle.Screen()wn.bgcolor("green")wn.title("yuxiangyang is testing!")alex = turtle.Turtle()alex.shape("turtle")alex.color("navy blue")alex.speed(0)原创 2013-07-28 09:06:35 · 709 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第七章 11-13
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 27/07/2013# Copyright: (c) penglaixy 2原创 2013-08-04 16:59:30 · 537 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第四章 2题
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 27/07/2013# Copyright: (c) peng原创 2013-07-28 10:26:51 · 523 阅读 · 0 评论 -
How to think like a computer scientist: 第四章 课后习题 5
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 27/07/2013# Copyright: (c) penglaixy 2原创 2013-07-28 22:30:38 · 550 阅读 · 0 评论 -
How to think like a computer scientist: 第五章 课后习题 9
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 27/07/2013# Copyright: (c) peng原创 2013-07-28 22:28:13 · 515 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第六章 13-19
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 27/07/2013# Copyright: (c) penglaixy 2原创 2013-08-03 10:03:24 · 495 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第七章 1-10
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 27/07/2013# Copyright: (c) penglaixy 2原创 2013-08-04 16:03:41 · 576 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第七章 14-17
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 27/07/2013# Copyright: (c) penglaixy 2原创 2013-08-04 22:06:25 · 708 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第十三章
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 17/08/2013# Copyright: (c) peng原创 2013-08-24 11:33:49 · 600 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第九章 第6题
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 11/08/2013# Copyright: (c) penglaixy 2原创 2013-08-11 14:11:01 · 427 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第十一章 5-11
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 11/08/2013# Copyright: (c) penglaixy 2原创 2013-08-11 21:21:58 · 738 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第九章 第3题
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 11/08/2013# Copyright: (c) penglaixy 2原创 2013-08-11 11:17:30 · 509 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第九章 第5题
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 11/08/2013# Copyright: (c) penglaixy 2原创 2013-08-11 11:42:17 · 858 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第九章 第4题
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 11/08/2013# Copyright: (c) penglaixy 2原创 2013-08-11 11:32:12 · 671 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第九章 第2题
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 11/08/2013# Copyright: (c) penglaixy 2原创 2013-08-11 10:58:14 · 604 阅读 · 0 评论 -
How to think like a Computer Scientist: 课后习题第八章
#-------------------------------------------------------------------------------# Name: module1# Purpose:## Author: penglaixy## Created: 27/07/2013# Copyright: (c) penglaixy 2原创 2013-08-09 22:25:37 · 527 阅读 · 0 评论 -
[转]Boost智能指针——scoped_ptr
boost::scoped_ptr和std::auto_ptr非常类似,是一个简单的智能指针,它能够保证在离开作用域后对象被自动释放。下列代码演示了该指针的基本应用:#include <string>#include <iostream>#include <boost/scoped_ptr.hpp>class implementation{public: ...转载 2018-05-01 16:03:55 · 155 阅读 · 0 评论