Q17 alternate answer ask for revision
还没有人认领这个 Issue。
评估
调研方向
Start with the inputValue() entry point shown in the issue and run it with D, W, and total inputs. Clarify the requested alternate-answer behavior, with done defined as a reproducible way to choose whether the total is printed without debugging the program each time.
由索引模型根据 Issue 内容生成。
描述
def inputValue():
count = 0
while True:
x = input("Enter value [D val/ W val/ total]: ")
x = x.split(" ")
if x[0] == 'total':
print(count)
elif x[0] == 'D':
count += int(x[1])
elif x[0] == 'W':
count -= int(x[1])
else:
print("Wrong input!")
continue
inputValue()
- To realize if programmer wishes to print the total or not without debugging every time but straight to run the program
- 主要语言
- 没有语言数据
- 星标
- 29.8k
- 派生
- 7k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
zhiwehu/Python-programming-exercises 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 72/100
zhiwehu/Python-programming-exercises#192 · 2 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 68/100
zhiwehu/Python-programming-exercises#82 · 2 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 48/100
zhiwehu/Python-programming-exercises#210 · 1 条评论 · 1 个 reaction ·
-
Python未关闭
难度 5/5 一周以上 新手友好度 5/100
zhiwehu/Python-programming-exercises#204 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 15/100
查看 zhiwehu/Python-programming-exercises 的全部 Issue
相似的 Issue
-
cause/upstream comp/cli P2 provider/other tool/file type/bug
难度 2/5 1-3 小时 新手友好度 78/100
NousResearch/hermes-agent#143900 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复
-
[Bug]: ap gateway image build cannot find local policies on Windows可能已有人在做 @Jayzilva 今天认领。 未关闭Aspect/Configuration Severity/Major
难度 2/5 1-3 小时 新手友好度 83/100
wso2/api-platform#3912 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug CLI documentation
难度 2/5 1-3 小时 新手友好度 67/100
openai/codex#56630 · 3 条评论 · 3 个 reaction ·
维护者通常 1 天内回复