V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
maxhhg
V2EX  ›  程序员

为什么函数不能嵌套定义?

  •  
  •   maxhhg · 2020-04-10 18:58:47 +08:00 · 1084 次点击
    这是一个创建于 1475 天前的主题,其中的信息可能已经有所发展或是发生改变。
    guyeu
        1
    guyeu  
       2020-04-10 20:38:22 +08:00
    实际上是可以的,比如 python 。
    jarenduan
        2
    jarenduan  
       2020-04-11 01:21:53 +08:00
    C#也可以, Local Function.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3498 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 00:08 · PVG 08:08 · LAX 17:08 · JFK 20:08
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.