题解 | #表达式求值#

表达式求值

http://www.nowcoder.com/practice/9566499a2e1546c0a257e885dfdbf30d

#!/usr/sbin/python
# -*- coding: utf-8 -*-

while True:
    try:
        i_input = input()
        print(int(eval(i_input)))

    except:
        break

全部评论

相关推荐

评论
点赞
1
分享

创作者周榜

更多
牛客网
牛客企业服务