- 巴扎黑
- 浏览量7278 | 粉丝242 | 关注1
-
2017-01-23 11:18:39
-
2017-01-09 09:34:25
-
2016-11-11 17:13:44
- python 教程的有 2 个地方看不懂
- 用 Python 来实现这个算法,可以先构造一个从 3 开始的奇数序列:def _odd_iter(): n = 1 while True: n = n + 2 yield n注意这是一个生成器,并且是一个无限序列。然后定义一个筛选函数:d
-
0
1
1249
-
2016-11-11 16:56:25
- python 的注释会占用内存么?
- 昨天遇到一个过来给我们普及下 python ,过程中间他提到 python 里的注释会占用更多内存,用三个引号"""阔起来就不会了 我当时感觉这个说法太过匪夷所思,就问是何缘故,可惜他推说不记得了,只说曾经专门给某公司写了个脚本把所有的注释都用"""阔起来,当时就是为了避免空间浪费。 下来之后我自己查找 python
-
0
1
2189
-
2016-11-11 16:42:10
- Python 遍历一个数组并计算最终结果
- 我有一段代码,如下: result = 0 for item in [3, 2, 5]: result ^= item print(result) 以上这个 for 循环能不能用一个函数,或一个语句就计算出来?
-
0
1
1259
-
2016-11-11 16:31:54
- 怎么在react中得到json对象的key value?
- let obj = {name: "实物券", description: "抵扣",cover: "http://test.com/1.jpg"}怎么得到这样的形式???,因为这个json 对象的元素不是固定的json 的键是:name ,json的对应的值是: "实物券", json 的键是:descrip
-
0
1
1933
-
2016-11-11 16:20:59
- Python 求二叉树所有左叶节点的和
- python# Definition for a binary tree node.# class TreeNode(object):# def __init__(self, x):#  
-
0
1
1023
-
2016-11-11 16:15:35
-
2016-11-10 17:26:52
- 混合编程时,关于php传值给js的问题
- 1.代码示例<?php
$std = new stdClass(); $std->one = "what's wrong";?><script type="text/java
-
0
1
1364
-
2016-11-10 17:23:03
- php 闭包的作用
- public function __construct($config)
{ parent::__construct(); $this['config'] = function ()
-
0
1
1432