我尝试使用打开命令,例如
with open("fname.txt") as f:
f.write("example")
但是一旦我部署了容器,我就不知道这个文件存储在哪里,也不知道如何获取它的内容。有什么建议吗?
使用全路径代替/tmp/<file>
我尝试使用打开命令,例如
with open("fname.txt") as f:
f.write("example")
但是一旦我部署了容器,我就不知道这个文件存储在哪里,也不知道如何获取它的内容。有什么建议吗?
使用全路径代替/tmp/<file>
javascript python java c# php android html jquery c++ css ios sql mysql arrays asp.net json python-3.x ruby-on-rails .net sql-server django objective-c excel regex ruby linux ajax iphone xml vba spring asp.net-mvc database wordpress string postgresql wpf windows xcode bash git oracle list vb.net multithreading eclipse algorithm macos powershell visual-studio image forms numpy scala function api selenium