LintCode:有效数字
来源:互联网 发布:网络推广人员工作要求 编辑:程序博客网 时间:2024/04/30 21:33
LintCode:有效数字
人生苦短,我用Python!
class Solution: # @param {string} s the string that represents a number # @return {boolean} whether the string is a valid number def isNumber(self, s): # Write your code here num = None try: num = eval(s) except: pass if num != None: return True return False
0 0
- LintCode:有效数字
- lintcode,有效数字
- lintcode 有效数字
- 有效数字-LintCode
- LintCode刷题:有效数字
- [Lintcode]Valid Number有效数字
- LINTCODE——有效数字(待改进)
- lintcode-有效回文字符串
- LintCode : 有效回文串
- LintCode-有效回文串
- lintcode --有效回文串
- 有效回文串,lintcode
- lintcode:有效回文串
- 有效回文串-LintCode
- 有效数字
- 有效数字
- 有效数字
- lintcode 有效的括号序列
- 判断App版本号/iOS系统版本号/4gWiFi环境/当前设备类型/横竖屏
- Hive高级操作总结(一)
- PAT 1008. 数组元素循环右移问题
- Linux操作GPIO(文件IO方式)
- TextKit/富文本/图层混排模式的使用(一)NSAttributedString
- LintCode:有效数字
- JavaScript与Objective-C的互相调用
- Shell脚本学习笔记(一)
- 复习封装,继承,多态
- eclipse (mars版 )开源中国镜像 配置导致创建quickstart报错 【解决】
- 116. Populating Next Right Pointers in Each Node
- 【BZOJ4519】【Sdoi2016】游戏 线段树
- Android系列之Activity
- 唯爱小粽子:软件架构的典型组成部分-安全性