码迷,mamicode.com
首页 >  
搜索关键字:python list    ( 182949个结果
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
可以进行自动补全的python的eclipse配置方法
可以进行自动补全的python开发环境...
分类:编程语言   时间:2014-05-23 01:32:59    阅读次数:520
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
Window上python开发--4.Django的用户登录模块User
django的用户注册和登录...
分类:编程语言   时间:2014-05-23 00:52:21    阅读次数:481
2E04-view-lists-slow-efficient-adapter
介绍自定一个的Adapter和list的监听 注意 1....
分类:其他好文   时间:2014-05-23 00:51:45    阅读次数:355
Django 1.6 CBVs
Django 1.6 最佳实践: 如何正确使用 CBVs (Class-based views) Class-based views是Django为解决建站过程中的常见的呈现模式而建立的. 在这节中, 我们着重讲一下CBVs的使用技巧和一般原则. 1. CBVs的使用原则 代码越少越好永远不要重复代码View应当只包含呈现逻辑, 不应包括业务逻辑保持view逻辑清...
分类:其他好文   时间:2014-05-22 23:22:14    阅读次数:299
DAG图的拓扑排序 python
在DAG中DFS中顶点的出栈顺序即逆拓扑序。 def topological_sort( graph ): is_visit = dict( ( node, False ) for node in graph ) li = [] def dfs( graph, start_node ): for end_node in...
分类:编程语言   时间:2014-05-22 23:12:10    阅读次数:487
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
要点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
python用正则表达式怎么查询unicode码字符
import re data = open('a.txt') fh = open('b.txt', 'w') """Search the string begining with '【'""" p = re.compile(r'\s*[\u3010]') for each_d in data:     if re.match('\s*3\d{4}', each_d):    ...
分类:编程语言   时间:2014-05-22 17:26:17    阅读次数:293
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!