-'s People
-'s Issues
输出结果问题
如果我没看错的话,你应该也是输出的时候没有去掉双引号,因为我自己的代码也是python,然后最后输出的没去掉双引号,交上去了才想起来怎么去
建议
缺少负数运算
建议
你的这个只能满足十以内的转换,超出十的话就无法转换了,且开头缺少输出字符串的语句
建议
问题
一点点建议
样例二1.pycharm一句句输入时在大于八如果一行后会提前输出无
整数 小杨年龄 等于 八
整数 小杨零花钱 等于 二
小杨年龄 增加 一
如果 小杨年龄 大于 八 则 小杨零花钱 增加 一 否则 无
无
看看 小杨零花钱
三
2.在小于八如果一行后会提前输出无,并且 看看后无输出
SunJC911的建议
1.可以用try...except来捕获异常,常见的为列表越界问题。
2.开头可以输出一句话来告诉用户数字为0-10等提示性语句,减少用户使用时发生的错误。
程序无法实现结果
我刚才测试的时候先输入:
整数 气温 等于 十
看看 气温
能得到结果十
然后又输入:
看看 “你好”
结果还是十
数字超过十报错
输入输出数字超过十都无法进行转换
建议
对定义整形不够严谨
问题
问题
1.第二个样例输出结果有问题
2.运算形式上有点固定,不支持其他输入方式,希望改善
问题
同学,你的代码对输入是如果开头时的判断不够完善,缺少输出字符串的语句,建议可以利用利用否则在输入中位置的不同来判断是要输出字符串还是对变量进行操作
样例二
样例二的输出存在问题,当小杨年龄 增加 一后,看看 小杨年龄 ,输出的是小杨零花钱增加一后的结果
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.