这是一段引用的内容:
>>> x = y = somefunction()
与以下代码相同:
>>> y = somefunction() >>> x = y
问题:以下代码是否与之相同?
x = y = somefunction()
x = somefunction() y = somefunction()
根据我的理解,它们应该是相同的,因为somefunction只能返回一个值。
somefunction
用户名或邮箱地址
密码