learn python the hard way例题,为什么在python shell 中运行出错,在power shell可以? 10

cars=100space_in_a_car=4.0drivers=30passengers=90cars_not_driven=cars-driverscars_dri... cars=100
space_in_a_car=4.0
drivers=30
passengers=90
cars_not_driven=cars-drivers
cars_driven=cars-drivers
carpool_capcity=cara_driven*space_in_a_car
average_passengers_per_car=passengers/cars_driven

print'there are',cars,'cars available.'
print'there are only',drivers,'ddrivers available.'
print'there will be',cars_not_driven,'empty cars today.'
print'we can transport',carpool_capacity,'people today'
print'we have',passengers,'to carpool today.'
print'we need to put about ,'average_passengers_per_car,'in each car.'
展开
 我来答
janlzhou
2018-05-04
知道答主
回答量:0
采纳率:0%
帮助的人:0
展开全部
贴出错误信息来,更可能帮到你。
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
waketzheng
2018-03-18
知道答主
回答量:0
采纳率:0%
帮助的人:0
展开全部
这本书深入浅出,很棒,当初学它是在linux系统下,一切都很顺利啊。要不你也在Linux环境下学习咯
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
?>

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式