摘要:一、如果知道序列中元素的个数,可以直接进行变量赋值。 coords = (102, 40) lon, lat = coords print(lon) print(lat) text = "news" a, b, c, d = text print(a) print(b) print(c) print
阅读全文
posted @ 2024-01-26 11:55
|
随笔分类 - python
摘要:一、如果知道序列中元素的个数,可以直接进行变量赋值。 coords = (102, 40) lon, lat = coords print(lon) print(lat) text = "news" a, b, c, d = text print(a) print(b) print(c) print
阅读全文
posted @ 2024-01-26 11:55
|
|
Powered by:
|