1
Froshal 2014 年 3 月 19 日
谢谢分享
|
2
a2z 2014 年 3 月 19 日 感谢分享
|
3
raquelken 2014 年 3 月 19 日
分享是好事,但是希望能写正确。。。
|
4
cocorosiekz 2014 年 3 月 19 日 python官网有how to系列,其中有函数式编程部分,地址http://docs.python.org/2/howto/functional.html
|
5
hupantingxue OP @raquelken 有问题可以直接给我提issue,谢谢!
|
6
ljcarsenal 2014 年 3 月 19 日 via Android
马克
|
7
yakczh 2014 年 3 月 19 日
问个低阶的问题
怎么用format格式化tuple的子项 比如 tu=('Server', 'Apache/2.2.4 ') print(" {0}:{1} ".format(tu)) 想输出 Server : Apache/2.2.4 但是提示tuple index out of range |
10
lsj5031 2014 年 3 月 19 日
@yakczh
unpack the tuple/sequence/collection into positional arguments. 因为format要跟的参数不是这个tuple,而是你那两个string。 |
11
hupantingxue OP 更新了一下
|