重启虚拟机后,再次重启nginx会报错“/var/run/nginx/nginx.pid" no such file or directory。每次重启虚拟机,这个目录都会被删掉。不过在nginx.conf看到被注释掉的地方:#pid logs/nginx.pid;若是在nginx下创建logs目录,再把上面的注释去掉。...
这个跟三个数之和一个思路,简单改一下就行了,纯属练习。class Solution: def threeSumClosest(self, nums,target): nums.sort() mind = 9999 for i in range(len(nums)): l = i+1 r = len(nums) - 1 while(l<r): ..