python编程计算_python编程 小小计算器

我是刚学的python编程

今天想编一个计算器,结果提示错误

各位老鸟帮帮忙

# Filename : jisuanqi.py

a = int(raw_input('a'))

fu = raw_input('符号')

b = int(raw_input('b'))

c = a + b

d = a - b

e = a * b

f = a / b

if fu == '+':

print 'This is the answer', c

elif fu == '-':

print 'This is the answer', d

if fu == '*':

print 'This is the answer', e

elif fu == '/':

print 'This is the answer', f

这个是他提示的问题信息 文件名 行 位置

Traceback

  4

Win32RawInput  464

exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xb7 in position 0: ordinal not in range(128)

会的老鸟帮帮忙

谢谢了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值