关注
码龄
粉丝数
原力等级 --
被采纳
被点赞
采纳率
m0_70373645
2022-05-03 13:06
采纳率: 77.8%
浏览 21
首页
Python
已结题
python中while循环为什么不输出Payment by credit card only?
python
这是我的代码,当pay_way等于credit card时为什么不输出Payment by credit card only.而是输出Enter cash这个input?
写回答
好问题
提建议
追加酬金
关注问题
微信扫一扫
点击复制链接
分享
邀请回答
2
条回答
默认
最新
相关推荐
更多相似问题
python
中
while循环
为什么
不
输出
Payment
by
credit
card
only
?
python
2022-05-03 13:06
回答 2
已采纳
又是我。。。终于见到代码全貌了,问题有点多哈。先捡重点的说,解答你的疑问:你的get_p
ay
()函数返回了两个值:return p
ay
_w
ay
, w
ay
,但是你在main()函数里只用了一个变量p
ay
python
中
,
while循环
为什么
不
循环
了?
python
2022-05-02 21:00
回答 1
已采纳
if p
ay
_w
ay
== "cash" or "CASH":改成 if p
ay
_w
ay
== "cash" or p
ay
_w
ay
== "CASH":elif p
ay
_w
ay
== "
credit
为什么
python
中
while
不
能使用全局变量呢??
python
开发语言
2019-09-04 17:47
回答 1
已采纳
放在外面,这三个算式只会执行一次,根本没
循环
起来。
python
有
while循环
吗_有人能解释一下这个
python
while循环
吗?
2021-02-04 04:10
ELAINE TAO的博客
我是一个
python
/编程初学者。我被分配了一个麻省理工学院开放式课件的问题:写一个程序,计算每月最低固定付款,以便在12个月内还清信用卡余额。在将以下浮点数视为raw_input():1)信用卡余额2) 以十进制表示的年...
javascript优缺点_为什么要在JavaScript
中
使用静态类型? 优缺点
2020-07-09 20:30
cumichun6193的博客
javascript优缺点
by
Preethi Kasireddy... 为什么要在JavaScript
中
使用静态类型? 优缺点 (Why use static types in JavaScript
?
The Advantages and Disadvantages) We covered a lot of ground in Part 1! With sy...
没有解决我的问题,
去提问