stuinf = data[(data['身份证号'] == int(stuid)) & (data['姓名'] == stuname)]在stuid前,加个int()
没数据,不好测试
说实话,我感觉你输入的文件绝对路径,有点问题啊!