码迷,mamicode.com
首页 >  
搜索关键字:python objects all    ( 160304个结果)
让你的linux支持chm文档的阅读
对于程序员来说经常要查看一些Reference帮助文档,可是面对一些旧文档,以及在没有网络的状况下,如何让你的linux支持chm文档的阅读,那么看下文吧!方法一:简单方法,在你的Firefox火狐上安装扩展(Add-on),搜索有一个chmreader,选择安装,重启firefox浏览器即可。要看*.c..
分类:系统相关   时间:2014-09-02 18:13:05    阅读次数:389
笨办法管理密码
好莱坞一众女星艳照事件引发了一系列对密码安全的关注,本文用不到一百行的python代码实现了一个密码生成与管理的功能。...
分类:其他好文   时间:2014-09-02 17:56:15    阅读次数:260
【LeetCode】Word Break II 解题报告
Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word. Return all such possible sentences. For example, given s = "...
分类:其他好文   时间:2014-09-02 17:52:35    阅读次数:191
LeetCode Solutions : Combination Sum I & II
Combination Sum  Given a set of candidate numbers (C) and a target number (T),  find all unique combinations in C where the candidate numbers sums to T. The same repeated number may be chosen fro...
分类:其他好文   时间:2014-09-02 17:48:05    阅读次数:244
iOS:使用导航栏
要求使用ARC//// main.m// Hello//// Created by lishujun on 14-8-28.// Copyright (c) 2014年 lishujun. All rights reserved.//#import // --------------视图控制...
分类:移动开发   时间:2014-09-02 17:38:05    阅读次数:188
文本两端对齐
text-justify 設定段落中各句如何調整,使段落左右之邊界對齊。可用值有:inter-word(利用調整字距)newspaper(利用調整字距或字母間距) distribute(與newspaper很像,但最適用於東亞)distribute-all-lines(連最後一行也調整至同寬,一般不...
分类:其他好文   时间:2014-09-02 17:35:35    阅读次数:195
Python-if
Python中的switch>>> choice = 'ham'>>> print({'spam': 1.25,... 'ham': 1.99, # A dictionary-based 'switch'... 'eggs': 0.99, # Us...
分类:编程语言   时间:2014-09-02 17:32:04    阅读次数:196
【python】入门学习(五)
字符串:正索引,从0开始 和 负索引,从-1开始>>> s = 'apple'>>> s[0]'a'>>> s[1]'p'>>> s[2]'p'>>> s[3]'l'>>> s[4]'e'>>> s[-1]'e'>>> s[-2]'l'>>> s[-3]'p'>>> s[-4
分类:编程语言   时间:2014-09-02 17:26:34    阅读次数:225
python os.path模块函数功能
1、os.path.abspath(path)获取绝对路径,实际上等于os.getcwd()+path2、os.path.basename(path)取path最后的文件或文件名。如果path以/结尾,那么就会返回空值;相对的有os.path.dirname(path),返回的是路径部分3、os.p...
分类:编程语言   时间:2014-09-02 17:17:04    阅读次数:321
Python从题目学习:List comprehension
九九乘法表作业其实有更简单的做法,就是用列表推导式。-----------------------------------------------------------------------------Print below multiplication table:1*1=11*2=2 2*2...
分类:编程语言   时间:2014-09-02 17:13:45    阅读次数:343
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!