码迷,mamicode.com
首页 >  
搜索关键字:dict    ( 5061个结果
python-内置函数-
1、#快速查看一个类提供了哪些功能 print(dir(dict))2、#打印类详细的说明 help(list) 3、#除法运算获取商和余数,返回元组 divmod() r=divmod(97,10)结果返回元组:(9,7)第一个元素为商,第二个元素为余数 #把商赋给n1,余数赋给n2 n1,n2= ...
分类:编程语言   时间:2017-02-27 21:28:08    阅读次数:210
LeetCode : Two sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex ...
分类:其他好文   时间:2017-02-24 23:54:32    阅读次数:294
urllib.urlencode() 无法encode中文, UnicodeEncodeError
urllib.urlencode() 无法encode中文, UnicodeEncodeError, 具体错误内容如下:File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", l ...
分类:Web程序   时间:2017-02-24 15:43:10    阅读次数:239
EF将IEnumerable<T>类型转换为Dictionary<T,T>类型
x 无标题 x ...
分类:编程语言   时间:2017-02-24 14:25:37    阅读次数:164
python学习——DAY5
今天主要继续上一节课,将内置函数讲完,后面讲了迭代器、生成器,以及系统内置标准模块的,讲内置标准模块的时候走思了,主要参考老师的blog吧。。。 一、内置函数: bytearray() 可以直接修改的字节变量格式 chr() 把数字转换成对应的ascii码 compile() 把一个代码文件加载进来 ...
分类:编程语言   时间:2017-02-24 11:49:37    阅读次数:176
【selenium自动化——cookie处理】
webdriver 操作 cookie 的方法有: 1.get_cookies() 获得所有 cookie 信息 2.get_cookie(name) 返回特定 name 有 cookie 信息 3.add_cookie(cookie_dict) 添加 cookie,必须有 name 和 value ...
分类:其他好文   时间:2017-02-22 18:06:30    阅读次数:237
获取设备信息
mark下如何获取设备相关的信息 ...
分类:其他好文   时间:2017-02-22 00:04:43    阅读次数:193
Leetcode 138. Copy List with random pointer
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a deep copy ...
分类:其他好文   时间:2017-02-20 11:17:58    阅读次数:252
Leetcode 127. Word Ladder
思路: ...
分类:其他好文   时间:2017-02-20 07:42:25    阅读次数:168
统计指定路径代码量
1 import easygui as g 2 import os 3 4 def show_result(path): 5 text='' 6 total=0 7 for each_ext in ext_dict: 8 total += ext_dict[each_ext] 9 text += '... ...
分类:其他好文   时间:2017-02-19 23:35:12    阅读次数:156
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!