摘要: 这是因为一些mac用户在升级系统之后,电脑启用了SIP(System Integrity Protection),增加了rootless机制,导致即使在root权限下依然无法修改文件,在必要时候为了能够修改下面的文件,我们只能关闭该保护机制 1)重启,过程中按住 command+R,进入保护模式 2 阅读全文
posted @ 2020-01-03 21:54 anobscureretreat 阅读(3026) 评论(0) 推荐(0)
摘要: //find number of times each digit occur in a number import java.util.Scanner; public class Numbers { public static void main(String[] args) { int num; int[] arr = new int[10]; // we use hashing to sol 阅读全文
posted @ 2020-01-03 09:44 anobscureretreat 阅读(1904) 评论(0) 推荐(0)
摘要: //check whether the number is palindrome or not /* * a number is said to be palindrome if, reverse of the number is same to * that of real. for example, 121, 52025, 5885 etc.. */ import java.u... 阅读全文
posted @ 2020-01-03 09:42 anobscureretreat 阅读(694) 评论(0) 推荐(0)
摘要: #coding=utf-8 import requests import time import json url="http://xxx/companies" payload={"companyName":"test产废单位10081934","companyType":2,"companyLinkman":"小明","companyPhone":"13111112222","addr... 阅读全文
posted @ 2020-01-03 01:23 anobscureretreat 阅读(136) 评论(0) 推荐(0)
摘要: #coding=utf-8 import requests import json #获取联单编号 def get_liandan_code(url,producer_code): url=url+"/bc/orders/manual/"+producer_code r = requests.post(url) assert r.json()['code']==... 阅读全文
posted @ 2020-01-03 01:22 anobscureretreat 阅读(137) 评论(0) 推荐(0)