角色和 line_spoken 是做什么的?我已经打印了,但我没有得到。很高兴有人可以帮助我了解角色和 line_spoken 的作用?
#!/usr/bin/python
man =[]
other=[]
f=open("passwd")
for line in f:
try:
(role, line_spoken)= line.split(":",1)
print role
#print line_spoken
except:
print "File missing"