xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

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.

这个旧版本即将永久休假

image

https://www.sololearn.com/learning/1158

https://www.sololearn.com/learning/1158/4650/11907/1

new version

image

https://www.sololearn.com/learn/courses/python-intermediate

https://www.sololearn.com/learn/courses/python-intermediate/lesson/912154710?p=1

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)

image

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, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2023-04-29 11:05  xgqfrms  阅读(12)  评论(0编辑  收藏  举报