Generation

generate functionTue, 11 Apr 2023

分割字符串,并带有注解

Script function splitAndMerge(str, sp) { return str .split(' ') .map(w => w .split('') .join(sp) ) .join(' ') }

Questions about programming?Chat with your personal AI assistant