位置:首頁 > 軟件操作教程 > 編程開發(fā) > Python > 問題詳情

python判斷數(shù)值是字符串還是數(shù)字?

提問人:楊紫紅發(fā)布時(shí)間:2020-11-18

>>> age=10

>>> if age == 10:

print("The variable myval doesn't have a value")

>>> age=’10’

>>> if age == 10:

print("The variable myval doesn't have a value")

繼續(xù)查找其他問題的答案?

相關(guān)視頻回答
回復(fù)(0)
返回頂部