字典,复杂表格数据储存
r1={"name":"张三","age":11,"salary":300000,"city":"上海"}
r2={"name":"李四","age":12,"salary":200000,"city":"上发"}
r1={"name":"张武","age":13,"salary":508000,"city":"上给"}
tb=[r1,r2,r3]
用列表,字典储存表格数据
r1=dict{name="张三",age=11,salary=300000,city="上海"}
r2=dict{name="李四",age=12,salary=200000,city="上发"}
r1=dict{name="张武",age=13,salary=508000,city="上给"}
tb=[r1,r2,r3]
薪资小于0则continue重新录入