擅长:python、mysql、java
<p>要在一行上打印,可以将每个字母附加在字符串上。</p>
<pre><code>def missing_ch(num, str):
result = ""
for i in range (len(str)):
if (i == num):
continue
result+=str[i]
print result
string = 'hello'
num = (int)(input('enter the position of char'))
missing_ch(num, string)
</code></pre>
<p><code>#>helo</code></p>