天天看點

學習打卡 第十六天

學習打卡

歡迎觀看一葉子先補水面膜的學習打卡

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])