sudo apt-get install ibus ibus-pinyin im-switchsudo apt-get install ibus-googlepinyinim-switch -s ibusibus-setup
分类:
其他好文 时间:
2014-06-28 16:01:58
阅读次数:
214
1.if语句(python中没有switch语句,可用if……elif……else代替)格式: if 表达式: #语句 else: #语句eg:number = 23guess = int(raw_input('Enter an integer:'))if guess == numb...
分类:
编程语言 时间:
2014-06-28 11:35:24
阅读次数:
253
Bonding is aggregation multiple links to single link in order to increase throughput and achieve redundancy in case one of links fails. At least, offi...
分类:
其他好文 时间:
2014-06-24 10:28:42
阅读次数:
211
You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb...
分类:
其他好文 时间:
2014-06-24 10:22:48
阅读次数:
214
WHAT?在写程序的时候我们会遇到很多种根据得出的数值就行不同处理的conditional statements,我们可以选用switch写法,以免使用太多的nested if会让程序difficult to read.syntax:switch(value){ case value1: ...;....
分类:
编程语言 时间:
2014-06-21 09:30:28
阅读次数:
252
All people seem to need data processing( Application presentation session transport network data link physic )host : end device ( PC Server )switch : ...
分类:
其他好文 时间:
2014-06-21 00:01:08
阅读次数:
493
未用SQL CTE and case when:ALTER PROCEDURE [dbo].[usp_rptDropboxBatchSummary1] @DataSource varchar(10)='ALL', @BatchNum varchar(8)='ALL'...
分类:
其他好文 时间:
2014-06-20 14:09:23
阅读次数:
284
查看指定帐号的授权信息 1 select OBJECT_NAME (id), USER_NAME (uid), 2 case action 3 when 193 then 'select' 4 when 195 then 'insert' 5 when 196 then 'delete' 6 whe...
分类:
其他好文 时间:
2014-06-18 09:50:52
阅读次数:
184
android fragment里面放viewpager 嵌套fragment 报错:
解决:在adapter的构造方法里加上 super(fragment.getChildFragmentManager)
把android项目变成lib的时候会在switch语句那里报错
解决:switch语句的case必须是常量R.id.xx 在作为项目的时候是常量 作为lib的时候不是 所以要变...
分类:
移动开发 时间:
2014-06-18 06:15:53
阅读次数:
394
一、 枚举
枚举定义了一种包含一组相关值的公共类型。枚举是Swift中的一种与类类似的类型,具有许多传统类才有的特征,例如计算属性、实例方法,能够通过扩展或协议增强功能等。
1.1 枚举定义
Swift 语言的枚举类型的定义语法如下:
enum
CompassPoint {
case
North...
分类:
移动开发 时间:
2014-06-18 00:50:25
阅读次数:
326