Python范例-Python

时间:2024-05-12 13:47:34
【文件属性】:

文件名称:Python范例-Python

文件大小:7.51MB

文件格式:PPT

更新时间:2024-05-12 13:47:34

python

Python范例 2.1 对象及类型 输入一个字符串,判断是否是由字母组成: def main(): name=raw_input("please input string:") if name.isalpha(): print "your string consists of alpha" else: print "your string isn't consists of alpha" if __name__ == '__main__': main()


网友评论