PTT
Submit
Submit
选择语言
正體中文
简体中文
PTT
ask
[请问] python的str和int?
楼主:
jpjpjp
(jp)
2018-08-25 18:50:52
python 输入如下
>>> a = 123
>>> a
123
>>> print(a)
123
>>> type(a)
<class 'str'>
>>> isinstance(a,str)
True
>>> isinstance(a,int)
False
>>> a.isdigit()
True
↑请问为什么? 既然认为它不是int,
为什么又认定它是digit?
先谢谢回复 m(__)m
作者:
robrob99
(梁龙)
2018-08-25 19:41:00
http://www.runoob.com/python/att-string-isdigit.html
作者: wray (Rayf)
2018-08-25 22:52:00
有这函数啊,谢谢楼上!
继续阅读
[请问] 废弃印错的贴纸可以去哪里买?
lahae5566
[请问]请问有线上英语课程要转让 要到哪个版po文?
evelyn20
[请问] 请问这件衣服哪里买的到?
yauun
[请问] 台铁营运员-消防工程
sillynono
[请问] 露天用7-11取货付款,星期日有在配送吗?
candy88257
[请问] 一天三份麦当劳
pinkbest
[请问] 请问agoda订房
shian14579
[请问] 过期的函授
joned
[请问] runningman专版
tete0130
[请问] 鞋子进水之后干掉有臭味怎么办
js2a117573
Links
booklink
Contact Us: admin [ a t ] ucptt.com