def getReplace(s):
wordList=["阿里巴巴","苹果","亚马逊","京东","字节","脸书"]
for word in wordList:
s=s.replace(word,"*"*len(word))
return s
print(getReplace("阿里巴巴、亚马逊、字节和脸书是世界上最知名的公司之一。"))
1、java.lang.IllegalStateException: Class invariant violation
at org.apache.log4j.LogManager.getLoggerRepository(LogManager.java:199)at org.apache.log4j.LogManager.getLogger(LogManager.java:228)
at o
hadoop jps出现process information unavailable提示解决办法
jps时出现如下信息:
3019 -- process information unavailable3053 -- process information unavailable2985 -- process information unavailable2917 --
<?php
class Image{
private $path;
function __construct($path='./'){
$this->path=rtrim($path,'/').'/';
}
//水印函数,参数:背景图,水印图,位置,前缀,TMD透明度
public function water($b,$l,$pos