jazoma 最近的时间轴更新
jazoma

jazoma

V2EX 第 301031 号会员,加入于 2018-03-17 23:00:20 +08:00
jazoma 最近回复了
2018 年 5 月 1 日
回复了 enm 创建的主题 程序员 想写一个更高智商的编程语言
这样的语言早就有了,而且有很多,它们都合起来就叫"面向员工编程语言", 使用这门语言的程序员叫老板。
-from functools import reduce
-
-def f(ys,s=[]):
-----x,xs = ys
-----if type(xs) != tuple:
---------return reduce(lambda x,y: (y,(x)), s+[x,xs])
-----return f(xs,s+[x])
from functools import reduce

def f(ys,s=[]):
x,xs = ys
if type(xs) != tuple:
return reduce(lambda x,y: (y,(x)), s+[x,xs])
return f(xs,s+[x])
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   5735 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 43ms · UTC 06:58 · PVG 14:58 · LAX 22:58 · JFK 01:58
♥ Do have faith in what you're doing.