Python基础语法集合

Python教程网站:

http://www.runoob.com/python/python-tutorial.html

 https://www.programcreek.com/python/

 

Numpy的index网站:

https://docs.scipy.org/doc/numpy-dev/genindex.html 

 

Python indigit()方法

功能:Python isdigit() 方法检测字符串是否只由数字组成。

返回值:如果字符串只包含数字则返回 True 否则返回 False。

实例:

参考链接:http://www.runoob.com/python/att-string-isdigit.html

 

posted @ 2018-03-27 16:32  BreakofDawn  阅读(134)  评论(0)    收藏  举报