Py学习  »  lilhamad  »  全部回复
回复总数  1
7 年前
回复了 lilhamad 创建的主题 » 在Python中执行数学运算时从列表中排除字符串[重复]
a = "cool"
type(a)
//result
<class 'str'>

or do `dir(a)` to see the list of inbuilt methods you can have on the variable.