uTank-木头
每一个你不满意的现在,都有一个你没有努力的曾经。
上一页 1 ··· 8 9 10 11 12 13 14 下一页
摘要: In this chapter I present classes to represent playing cards, decks of cards, and poker hands.If you don't play poker, you can read about it at http:/... 阅读全文
posted @ 2015-04-03 11:24 uTank 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 国家司法考试的内容包括:理论法学、应用法学、现行法律规定、法律实务和法律职业道德。国家司法考试采用闭卷、笔试的方式。考试分为四份试卷,每份试卷分值为150分,四卷总分为600分。试卷一、试卷二、试卷三为机读式选择试题,试卷四为笔答式实例(案例)分析试题(含法律文书写作)。各卷的具体科目为:试卷一:综... 阅读全文
posted @ 2015-03-31 21:23 uTank 阅读(301) 评论(1) 推荐(0) 编辑
摘要: 17.1 Object-oriented featuresPython is an object-oriented programming language, which means that it provides features that support object-oriented pro... 阅读全文
posted @ 2015-03-31 15:02 uTank 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 16.1 TimeAs another example of a user-defined type, we’ll define a class called Time that records the time of day. The class definition looks like thi... 阅读全文
posted @ 2015-03-29 19:21 uTank 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 15.1 User-defined typesWe have used many of Python’s built-in types; now we are going to define a new type. As an example, we will create a type calle... 阅读全文
posted @ 2015-03-29 19:20 uTank 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 12.1 Tuples are immutable(元组是不可变的)A tuple is a sequence of values. The values can be any type, and they are indexed by integers, so in that respect tu... 阅读全文
posted @ 2015-03-27 15:17 uTank 阅读(344) 评论(0) 推荐(0) 编辑
摘要: DictionariesA dictionary is like a list, but more general. In a list, the indices have to be integers; in a dictionary they can be (almost) any type.Y... 阅读全文
posted @ 2015-03-21 11:05 uTank 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 10.1 A list is a sequenceLike a string, a list is a sequence of values. In a string, the values are characters; in a list, they can be any type. The v... 阅读全文
posted @ 2015-03-21 10:59 uTank 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 3.1 Function callsIn the context of programming, a function is a named sequence of statements that performsa computation. When you define a function, ... 阅读全文
posted @ 2015-03-21 10:50 uTank 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 8.1 A string is a sequenceA string is a sequence of characters. You can access the characters one at a time with thebracket operator:>>> fruit = 'bana... 阅读全文
posted @ 2015-03-21 10:36 uTank 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 首先介绍一下“回车”(carriage return,’\r’)和“换行”(line feed,’\n’)这两个概念的来历和区别。在计算机还没有出现之前,有一种叫做电传打字机(Teletype Model 33)的玩意,每秒钟可以打10个字符。但是它有一个问题,就是打完一行换行的时候,要用去0.2... 阅读全文
posted @ 2015-03-18 14:18 uTank 阅读(40373) 评论(0) 推荐(11) 编辑
摘要: ·I2C总线的一些特征: 1、 只要求两条总线,一条串行数据线(SDA),一条串行时钟线(SCL) 2、 两个连接到总线的器件都可以通过唯一的地址和一直存在的简单的主机/从机系统软件设定的地址;主机可以作为主机发送器或主机接收器 3、 它是一个真正的多主机总线,如果两个或更多个主机同时初始化数据传输 阅读全文
posted @ 2015-03-15 21:26 uTank 阅读(2103) 评论(0) 推荐(0) 编辑
摘要: SPI模块为了和外设进行数据交换,根据外设工作要求,其输出串行同步时钟极性和相位可以进行配置。 时钟极性(CPOL)对传输协议没有重大的影响。 如果CPOL=0,串行同步时钟的空闲状态为低电平; 如果CPOL=1,串行同步时钟的空闲状态为高电平。 时钟相位(CPHA)能够配置用于选择两种不同的传输协 阅读全文
posted @ 2015-03-15 21:05 uTank 阅读(1100) 评论(0) 推荐(0) 编辑
摘要: 手机名称有GSM:表示只支持中国联通或者中国移动2G号段(130、131、132、134、135、136、137、138、139、145、147、150、151、152、155、156、157、158、159、182、183、185、186、187、188)手机名称有CDMA:表示只支持中国电信2G... 阅读全文
posted @ 2015-03-14 23:18 uTank 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 问题:两个有序数组a和b,合并成一个有序数组c。 1 // 合并两个有序数组a和b到c 2 void Merge_Array(int a[], int n, int b[], int m, int c[]) 3 { 4 int i, j, k; 5 i = j = k = 0; 6 ... 阅读全文
posted @ 2015-03-12 16:26 uTank 阅读(1104) 评论(0) 推荐(0) 编辑
摘要: 【八皇后问题】在棋盘上放置8个皇后,使得她们互不攻击,此时每个皇后的攻击范围为同行同列和同对角线,要求找出所有解。【回溯】:当把问题分成若干步骤并递归求解时,如果当前步骤没有合法选择,则函数将返回上一级递归调用,这种现象称为回溯。递归枚举算法通常被称为回溯法。 1 #include 2 3... 阅读全文
posted @ 2015-03-11 16:23 uTank 阅读(161) 评论(0) 推荐(0) 编辑
摘要: #include #define false (0)#define true (1)int sudoku[9][9]={ {0, 7, 1, 0, 5, 9, 0, 0, 4}, {2, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 4, 0, 7, 0,... 阅读全文
posted @ 2015-03-10 18:10 uTank 阅读(178) 评论(0) 推荐(0) 编辑
摘要: ARM处理器模式 ARM处理器共有7种运行模式: 除了用户模式之外的其他6种处理器模式称为特权模式(Privileged Modes)。在这些模式下,程序可以访问所有的系统资源,也可以任意地进行处理器模式的切换。其中,除了系统模式外,其他5种特权模式又称为异常模式。 处理器模式可以通过软件控制进行切 阅读全文
posted @ 2015-03-09 17:53 uTank 阅读(501) 评论(0) 推荐(0) 编辑
摘要: ARM异常中断处理 在ARM体系中,通常有以下3种方式控制程序的执行流程: 在正常程序执行过程中,每执行一条ARM指令,程序计数器寄存器(PC)的值加4个字节;每执行一条Thumb指令,程序计数器寄存器(PC)的值加2个字节。整个过程是顺序执行。 通过跳转指令,程序可以跳转到特定的地址标号处执行,或 阅读全文
posted @ 2015-03-09 16:01 uTank 阅读(2351) 评论(0) 推荐(0) 编辑
摘要: 国风·召南·野有死麕野有死麕,白茅包之。有女怀春,吉士诱之。林有朴樕,野有死鹿。白茅纯束,有女如玉。舒而脱脱兮!无感我帨兮!无使尨也吠! 阅读全文
posted @ 2015-03-05 17:30 uTank 阅读(296) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 下一页