建议使用 r'' 穗模 来处理
open(r"j:\a.txt", "r") # 这猜差缓样就不会出错了if (fopen_s(&fp,"acommodation.txt"册败, "ab"州旅颤镇游) == NULL)if (fopen_s(&fp,"acommodation.txt", "wb") == NULL)
改成
if (fopen_s(&fp,"acommodation.txt", "ab") != 0)
if (fopen_s(&fp,"acommodation.txt", "wb") != 0)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)