列表2

l=[['Apple','Google','Microsoft'],\
   ['Java','Python','Ruby','PHP'],\
   ['Adam','Bart','Lisa']\
   ]

names=['Michael','Bob','Tracy']
print(names[1])
scores=[95,75,85]

d={'Michael':95,'Bob':75,'Tracy':85}
d['Bob']=88
d['Rose']=
print(d['Bob'])





att={'name':'201709090013刘单','lateTimes':0'onTimes':8,'workTimes':7}
print(att['workTimes'])
  File "E:/buguizheliubianxing/不规则六边形.py", line 12
    d['Rose']=
             ^
SyntaxError: invalid syntax

Process finished with exit code 1

猜你喜欢

转载自www.cnblogs.com/296134a/p/9134112.html