小编Cho*_*chu的帖子

代码行之间的Python逗号

我想了解逗号在self.data和self.next = data之间做了什么.谢谢

class Node(object):
  def __init__(self, data, nxt = None):
    self.data, self.next = data, nxt
class Context(object):
  def __init__(self, source, dest):
    self.source, self.dest = source, dest
Run Code Online (Sandbox Code Playgroud)

python comma

0
推荐指数
1
解决办法
350
查看次数

标签 统计

comma ×1

python ×1