天天看点

学习打卡 第十六天

学习打卡

欢迎观看一叶子先补水面膜的学习打卡

c:日常学习

void search(struct link *h)

{ struct link *p;

char x,m=‘n’;

int id=1;

p=h; x=getchar();

while(p!=NULL)

{ if(p->chx)

{ printf("’%c’ position is %d\n",x,id);

m=‘y’;

}

p=p->next;

id++;

}

if(m’n’)printf("’%c’is not find!\n",x);

printf("\n");

}

python:教学习题

if name == ‘main’:

person = {“li”:18,“wang”:50,“zhang”:20,“sun”:22}

m = ‘li’

for key in person.keys():

if person[m] < person[key]:

m = key

print '%s,%d' % (m,person[m])