在咖啡中多次分配变量

khe*_*hex 6 javascript python coffeescript

我可以coffee像这样分配多个变量python:

a, b, c = 'this', 'is', 'variables'

print c >>>变量

bac*_*rhh 15

试试吧[a, b, c] = ['this', 'is', 'variables'].

  • 太棒了,谢谢`_ref = ['this','是','变量'],a = _ref [0],b = _ref [1],c = _ref [2]; (2认同)