擅长:python、mysql、java
<pre><code>expression = introduction()
operators = {'*', '/', '+', '-'}
while any(not char.isnumeric() and char not in operators for char in expression):
print("Please enter valid inputs, please try again.")
expression = introduction()
</code></pre>