Sprint(第九天11.22)】的更多相关文章

#!/usr/bin/env python #def f1(x) : # return x > 22 ret = filter(lambda x : x > 22 ,[11,22,33,44]) print(ret) for i in ret : print(i) # 普通条件语句 if 1 == 1:     name = 'wupeiqi' else:     name = 'alex'      # 三元运算 name = 'wupeiqi' if 1 == 1 else 'alex'…
#!/usr/bin/env python #有如下值集合[11,22,33,44,55,66,77,88,99,90...],将所有大于66值保存至字典的一个key中,将小于66的值保存至大二个key的值 li = [11,22,33,44,55,66,77,88,99,90] person = {">66":[],"<=66":[]} for i,j in enumerate(li,0) : if int(j) > 66 : person[&q…
li = [11,22,33,44,55,66,77,88,99]dict = {'k1':[],'k2':[]}for i in li:    if i < 66:        dict["k1"].append(i)    else:        dict['k2'].append(i)print(dict)…
2017/11/22 Leetcode 日记 136. Single Number Given an array of integers, every element appears twice except for one. Find that single one. class Solution { public: int singleNumber(vector<int>& nums) { int len = nums.size(); ]; ; i < len; i++){…
方法一: li = [11,22,33,44,55,66,77,88,99]s = []m = []for i in li: if i <= 55: s.append(i) else: m.append(i)print(s)print(m)方法二: li = [11,22,33,44,55,66,77,88,99]dic = { 'k1':[], 'k2':[]}for i in li: if i <= 55: dic['k1'].append(i) else: dic['k2'].appen…
Sprint1第一阶段 1.类名:软件工程-第一阶段 2.时间:11.14-11.23 3.选题内容:点餐系统 4.团队博客地址:http://www.cnblogs.com/iamCarson/ 团队github地址: http://github.com/iamcarson/admin1 5.队员信息:126林发 http://www.cnblogs.com/linfa/                               http://github.com/linfafa 125陈庆…
Sprint1第一阶段 1.类名:软件工程-第一阶段 2.时间:11.14-11.23 3.选题内容:点餐系统 4.团队博客地址:http://www.cnblogs.com/iamCarson/ 团队github地址: http://github.com/iamcarson/admin1 5.队员信息:126林发 http://www.cnblogs.com/linfa/                               http://github.com/linfafa 125陈庆…
ROS语音工具汇总,目前先给出链接,只用过一些简单的命令. 中文语音: 参考链接:使用科大讯飞库 1 http://www.ncnynl.com/archives/201611/1069.html 2 http://blog.csdn.net/zhouge94/ pocketsphinx: 1 https://github.com/cmusphinx 2 http://cmusphinx.sourceforge.net/ julius: 1 https://github.com/julius-s…
一. 引言 在<第11.2节 Python 正则表达式支持函数概览>介绍了re模块的主要函数,在<第11.3节 Python正则表达式搜索支持函数search.match.fullmatch.findall.finditer>重点介绍了几个搜索函数,后续章节将介绍re模块的其他函数,本节先介绍re.split函数的功能. 二. 语法释义 调用语法: re.split(pattern, string, maxsplit=0, flags=0) 参数及返回结果释义: 1)这个函数的功能…