1 if (nil~=io.open("D:\\a.txt", "r"))then 2 os.remove("D:\\a.txt"); 3 print("a.txt is exist"); 4 else 5 io.open("D:\\a.txt","w"); 6 end
3,423
社区成员
15,635
社区内容
加载中
试试用AI创作助手写篇文章吧