强大的Python大数四则运算

#!/usr/bin/python
import sys
running = True
while running:
        try:
                t = int(raw_input())
                p = int(raw_input())
        except EOFError:
                break
        print 'operator + result \n', t+p
        print 'operator - result \n', t-p
        print 'operator * result \n', t*p
        print 'operator / result \n', t/p

你可能感兴趣的:(ACM水题之路—杂算法)