mirror of
				https://gitee.com/coder-xiaomo/leetcode-problemset
				synced 2025-11-04 19:53:12 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			518 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			518 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
<p>假定一段路径记作字符串 <code>path</code>,其中以 "<code>.</code>" 作为分隔符。现需将路径加密,加密方法为将 <code>path</code> 中的分隔符替换为空格 "<code> </code>",请返回加密后的字符串。</p>
 | 
						||
 | 
						||
<p> </p>
 | 
						||
 | 
						||
<p><strong>示例 1:</strong></p>
 | 
						||
 | 
						||
<pre>
 | 
						||
<strong>输入:</strong>path = "a.aef.qerf.bb"
 | 
						||
 | 
						||
<strong>输出:</strong>"a aef qerf bb"
 | 
						||
 | 
						||
</pre>
 | 
						||
 | 
						||
<p> </p>
 | 
						||
 | 
						||
<p><strong>限制:</strong></p>
 | 
						||
 | 
						||
<p><code>0 <= path.length <= 10000</code></p>
 |