import java.util.*; public class Solution { public String replaceSpace (String s) { return s.replace(" ", "%20"); } } Java直接一行解决,但跑出来效果极差,我郁闷了,...