Sololearn website big changes All In One
Learn
Python
old
version
Jump to our best Python course!
This old version is about to go on permanent vacation
.
这个旧版本即将永久休假
https://www.sololearn.com/learning/1158
new
version
https://www.sololearn.com/learn/courses/python-intermediate
demos
Tuple Unpacking / 元组结构
numbers = (1, 2, 3)
a, b, c = numbers
print(a)
print(b)
print(c)
# swap
x, y = [1, 2]
x, y = y, x
print(x)
print(y)
a, b, *c, d = [1, 2, 3, 4, 5, 6, 7, 8, 9]
print(a)
print(b)
print(c)
print(d)
https://www.sololearn.com/learn/courses/python-intermediate/lesson/912154711?p=4
(? 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!
refs
©xgqfrms 2012-2021
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 ?️,侵权必究⚠️!