gpt4 book ai didi

javascript - 咖啡中变量的多重赋值

转载 作者:太空狗 更新时间:2023-10-29 22:07:59 25 4
gpt4 key购买 nike

我可以像在 python 中那样在 coffee 中分配多个变量吗:

a, b, c = 'this', 'is', '变量'

打印c >>>变量

最佳答案

尝试使用 [a, b, c] = ['this', 'is', 'variables']

关于javascript - 咖啡中变量的多重赋值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22692291/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com