zoukankan
html css js c++ java
Python 列表[1,2,3,4,5],请使用map()函数输出[1,4,9,16,25]
l = [1, 2, 3, 4, 5
]
def
foo(i):
return
i*
i n
=
map(foo, l)
print
(list(n))
打印结果为
[1, 4, 9, 16, 25]
查看全文
相关阅读:
string截断
winform截屏
android自定义tabhost,tabcontent用intent获得
Eclipse引入jar包的三种方式
jquery dataTable的学习
jquery datatable 参数
Sql Server中三种字符串合并方法的性能比较
sql表设计
开发守则
App Store2016年最新审核规则
原文地址:https://www.cnblogs.com/loganSxb/p/10980258.html
最新文章
C++ STL之vector常用指令
CodeForces 148D Bag of mice
数论专题训练
C++ STL之string常用指令
domion Designer 管理员ID过期
python_day25__02_编码问题_什么时候用utf8和gbk
python_day26__socke网络编程之subprocess方法_产生在DOS环境下执行的子进程以执行DOS命令符
python_day26__socket网络编程之简易聊天
python_day26__socket网络编程基础编程知识
python_day25_一个类的对象作为另一个类的参数
热门文章
day25_python_反射_getattr()方法_hasattr()方法_setattr()方法_delattr()方法
day25_python_单例模式_始终只有一个对象
python_day25__02__异常处理__try---exception—else---finally
python_day25__02__iter()方法和type方法去自己创建类
python_day25__各种特殊方法
css学习之@ keyframes
Function.prototype.bind函数兼容处理
jquery获取canvas对象问题 及钟表插件问题
jquery插件之jquery.jqzoom
jquery插件之 jquery.cookie
Copyright © 2011-2022 走看看