Sololearn website big changes All In One
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
refs
©xgqfrms 2012-2021
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
未经授权禁止转载,违者必究!