返回顶部

收藏

Tuple sequence

更多
X = 'spam'
Y = 'eggs'

print X
print Y

X, Y = Y, X

print X
print Y

标签:Python,Tuple

收藏

0人收藏

支持

0

反对

0

»更多 您可能感兴趣的代码
  1. 2016-12-28 20:35:28range and tuple by 大猪
  2. 2016-03-06 11:07:06Tuple indexing and slicing by 司马
  3. 2016-10-01 14:17:08Create tuple from an integer by 山药
  4. 2017-03-05 17:13:56Test for membership with in by 司马
  5. 2015-12-04 19:34:17Tuple is not changable by 西国の海妖
  6. 2017-04-02 09:05:06Indexing a single-item tuple by wubai
  7. 2013-06-05 13:21:25python 使用MySQLdb连接mysql by 玉开Sir
  8. 2016-12-04 11:48:03Treat the tuple as a condition by 阿明娃儿
  9. 2016-12-13 09:18:00Create an empty tuple by 蟋蟀MM
  10. 2016-02-08 09:02:26Display one item through an index by wubai
  11. 2016-08-18 13:33:25A tuple consists of a number of values separated by commas by 阮小七

发表评论