Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将文件从 res:// 移动到 user:// 位置。下面是我的代码
#copydb var dir = Directory.new(); dir.copy("res://gk.db","user://gk.db");
但我收到以下错误
解析错误:意外令牌:标识符:dir
我在一个函数中尝试了你的代码并缩进了它。没有错误。您可能正在函数之外编写该代码。当我这样做时,我得到了你的错误。