码迷,mamicode.com
首页 >  
搜索关键字:列表(list)    ( 98808个结果
Python线程指南(转)
1. 线程基础1.1. 线程状态线程有5种状态,状态转换的过程如下图所示:1.2. 线程同步(锁)多线程的优势在于可以同时运行多个任务(至少感觉起来是这样)。但是当线程需要共享数据时,可能存在数据不同步的问题。考虑这样一种情况:一个列表里所有元素都是0,线程"set"从后向前把所有元素改成1,而线程...
分类:编程语言   时间:2014-05-27 00:39:10    阅读次数:360
001. 3和5的倍数
Problem 1: Multiples of 3 and 5 If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multip...
分类:其他好文   时间:2014-05-23 01:43:01    阅读次数:253
2E08-view-lists-Array(overlay)
介绍一个list滑动时通过一个text提示Array首字母位置的应用 /* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exce...
分类:其他好文   时间:2014-05-23 00:58:42    阅读次数:326
2E02-View-Lists-multiple -choice-list
介绍一个多选list /* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with th...
分类:其他好文   时间:2014-05-23 00:52:57    阅读次数:455
2E04-view-lists-slow-efficient-adapter
介绍自定一个的Adapter和list的监听 注意 1....
分类:其他好文   时间:2014-05-23 00:51:45    阅读次数:355
2E06-view-lists-separators
介绍通过方法 @Override public boolean areAllItemsEnabled() { return false; } @Override public boolean isEnabled(int position) { return !mStrings[position].startsWith("-"); } 设置list的可以选和不可选注意有...
分类:其他好文   时间:2014-05-22 23:08:09    阅读次数:388
CSS_使用css布局
1.   创建一个HTML页面, 其内容为一个无序列表,列表中至少包含了5本畅销书,每本书之前的项目符号必须采用概述封面的缩略图。这些信息可以冲Web上获取。 要求采用CSS方法进行布局。 交作业的请不要照抄我的代码- -。 ex1.html: Linux畅销书...
分类:Web程序   时间:2014-05-22 22:52:14    阅读次数:448
一行代码的快速排序
很和谐精悍的一行快排代码quicksort1。 import random def quicksort( list ): if list == []: return [] else: cut = list[0] lesser = quicksort( [ x for x in list[1:] if x < cut ]...
分类:其他好文   时间:2014-05-22 22:33:19    阅读次数:402
要点Java19 java.util.Arrays
Arrays 数组帮助类 示例程序(JUnit演示) 数组转化为List @Test public void testUserArraysChangeArraytoList() { // 类Arrays // public static List asList(T... a) // Returns a fixed-s...
分类:编程语言   时间:2014-05-22 18:37:40    阅读次数:354
网络实用命令汇总
netstat-n查看当前建立的会话列表netstat-nb可以查看当前会话是由哪个应用程序开启的
分类:其他好文   时间:2014-05-22 18:14:08    阅读次数:335
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!