一.File.separator File file=new File(); 这句是新建一个文件.file.separator这个代表系统目录中的间隔符,说白了就是斜线,不过有时候需要双线,有时候是单线,你用这个静态变量就解决兼容问题了. 在Windows下的路径分隔符和Linux下的路径分隔符是不一样的,当直接使用绝对路径时,跨平台会暴出“No such file or diretory”的异常. 比如说要在temp目录下建立一个test.txt文件,在Windows下应该这么写:File f
@echo off::pip install seleniumpython -c"import sys;print(sys.prefix)" >temp.txtfor /f %%i in (temp.txt) do set PythonPath=%%iecho.Python路径:%PythonPath%echo.SYSTEM路径:%systemroot%\system32 del temp.txtpause
redis修改持久化路径和日志路径 vim redis.conf logfile /data/redis_cache/logs/redis.log #日志路径 dir /data/redis_cache #持久化路径,修改后 记得要把dump.rdb持久化文件拷贝到/data/redis_cache下 先杀掉redis,拷贝dump.rdb,启动 清缓存 cd /data/server/redis-2.6.16/src ./redis-cli #进入 dbsize flushall #执行 ex
Consider a town where all the streets are one-way and each street leads from one intersection to another. It is also known that starting from an intersection and walking through town's streets you can never reach the same intersection i.e. the town's