Generation

generate functionFri, 09 Dec 2022

文字列の数字6桁を空文字に置換する関数

def mask_article(text, keyword): return text.replace(keyword, "*"*len(keyword)) text = "今日のサンプルは金額です" mask_article(text, "金額")

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant