【程序1】 题目:古典问题:有一对兔子,从出生后第3个月起每个月都生一对兔子,小兔子长到第三个月后每个月又生一对兔子,假如兔子都不死,问每个月的兔子总数为多少? //这是一个菲波拉契数列问题 public class lianxi01 { public static void main(String[] args) { System.out.println("第1个月的兔子对数:
39 - 电影评分 (selectu.name as resultsfromMovieRating m left join Users u on m.user_id=u.user_id GROUP BYm.user_idorder by count(*) desc,u.name asc limit 1)union all(selectm1.title as results
38 - 换座位 -- 方法一select(casewhen id%2=1 and id=(select max(id) from seat) then idwhen id%2=0 then id-1else id+1end) as id, studentfromseatorder byid;-- 方法二selectif(id%2=0,id-1,if(id=(select max(i
override func viewDidLoad() {super.viewDidLoad()// Do any additional setup after loading the view, typically from a nib.let image = UIImage(named: "pic1")//从项目资源文件中读取一张图片//调用缩放图片的方法,将图片缩小至指定尺寸