• 2022-06-09
    写出程序的运行结果。s=0fo=open("file.txt","w+")for i in range(1,10): fo.write(str(i))fo.seek(0)ls=fo.read()fo.close()for x in ls: s+=int(x) if int(x)%2 else 0print("输出:{:d}".format(s))