擅长:python、mysql、java
<p>您可以在一行中将所有变量链接在一起。你知道吗</p>
<pre><code>foo = bar = qaxx = spat = "1Value4All"
</code></pre>
<p>编辑:在下面说明您的数据是string或NoneType。这两种方法都适用。你知道吗</p>
<pre><code>>>> foo = bar = None
>>> type(foo); type(bar)
<type 'NoneType'>
<type 'NoneType'>
>>> foo = bar = "1Value4All"
>>> type(foo); type(bar)
<type 'str'>
<type 'str'>
</code></pre>