笔试题

#示例:
#输入: "25525511135"
#输出: ["255.255.11.135", "255.255.111.35"]


# 假设原始Json串:
# {"routeInfos":"[{\"method\":\"native\","
# "\"uri\":\"eleme://platformapi/startapp?appId=22222&chInfo=ch_scan__chsub_tinybiz&page=%2Fpages%2Fstores%2Findex&qrCode=testQrcodeaaa\","
# "\"walletOnly\":false},"
# "{\"clientVersion\":\"1.0.2\",\"modifyDate\":\"20200111\"}]",
# # "fuseReplayTag":false,
# "success":true,
# "sampling":false,
# "resultCode":100,
# "extInfo":"{\"traceId\":\"0ba77425158329863363984392569\",\"isCache\":\"false\",\"bizType\":\"testRouterService\",\"cacheAction\":\"cleanBizType\",\"serverLogin\":\"F\",\"method\":\"extInfo_method\"}"
# ,"method":"base_method"}

# 支持 输入任意Key,value属性来替换当前json串内的kv。
# 如 输入key 为method, value为 test 替换"method":"base_method" -> "method":"test"。
# 需注意需要能够分别支持替换题中每一个method
posted @ 2022-08-30 10:32  一只有梦想的咸鱼  阅读(34)  评论(0编辑  收藏  举报