擅长:python、mysql、java
<p>请这样做,您将得到您的答案:-</p>
<pre><code> vowels = ('a', 'e', 'i', 'o', 'u')
for x in string.lower():
if x in vowels:
string = string.replace(x, "")
# Print string without vowels
print(string)
your_string = "the quick brown fox jumps over the lazy dog"
vowel_remove(your_string) ```
I tried and get a result which you can see in given image:-
`developer@developer-x550la:~/MY_PROJECT/Extract-Table-Pdf/extractPdf$ python3 stak.py
th qck brwn fx jmps vr th lzy dg
`
</code></pre>