擅长:python、mysql、java
<p>像这样?在</p>
<pre><code>>>> SpeedList = ["25","30"]
>>> NameList = ["John Smith","Tom Smith"]
>>> for name, speed in zip(NameList, SpeedList):
... print (name)," Was driving at ",(speed), " mph."
...
John Smith Was driving at 25 mph.
Tom Smith Was driving at 30 mph.
>>>
</code></pre>