python - How to convert strings numbers to integers in a list? -


मेरे पास एक सूची है:

  ['batting average', '306',  

मदद के लिए धन्यवाद। Div>

  changed_list = [int (f) अगर f.isdigit () अन्यथा f f मूल लिस्ट में]  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -