Tag: 元组

Python为元组中的每个元素命名

Jackey Python 1,162 次浏览 ,
from mrjob.py2 import xrange student = ('Jim', 16, 'male', 'jim8721@gmail.com') print(student[0]) # NAME = 0 # AGE = 1 # GENDER = 2 # EMAIL = 3 NAME, AGE, GENDER, EMAIL = xrange(4) print(student[NAME...
Go