K12教育赛事综合服务平台
专注青少年竞赛题库网站
聚乐之家官方网站
下载聚乐之家官方App
列表stud存储每位学生的身份证号码,如stud = ['110726201205261117','120718201209011101']。
def cj(xs): c = 0 for s in xs: age = int( ① ) if 2023 - age == 10: c += 1 return c print(cj(stud))
s[6:10]
s[6:-8]
s[-12:-8]
s[-12:11]