腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
如何在
python
中解决此代码中的值错误
、
print("welcome to the
tip
calculator, hope you had a good time")
tip
=input("how much would you like to
tip
?\n No
tip
, 10% , 15%, 20%\n") print(&q
浏览 4
提问于2022-09-28
得票数 0
4
回答
用最少的硬币数计算小费
示例import math min_
tip
_cents = int(math.ceil(meal_price * min_
tip
_percent)) max_
tip
_cents = int(math.
浏览 0
提问于2018-07-26
得票数 24
回答已采纳
1
回答
如何在
Python
中舍入到最近的十进制
、
这是我第一次使用
Python
。我想找出如何用最简单的方法来圆小数。print("\nTip Calculator") print("
Tip
Percent: 20%") total = cost
浏览 0
提问于2019-07-12
得票数 1
回答已采纳
1
回答
digraph对象没有属性“”add_path“”
、
、
、
、
=ctrl.ControlSystem([rule1,rule2, rule3])
tip
.input['service']=2.1
tip
.compute()#
tip
.view(sim=
tip
) #pit.sh
浏览 104
提问于2019-11-19
得票数 0
回答已采纳
1
回答
cmd中的执行与批处理文件之间的不一致性
、
、
在cmd中执行命令期间,我的书面应用程序运行良好:C:\
Python
33\
python
.e
浏览 1
提问于2015-01-21
得票数 0
回答已采纳
3
回答
使用for循环根据小费百分比范围计算膳食价格
、
def total_cost(price,tax,
tip
): return bill
浏览 0
提问于2017-05-08
得票数 0
回答已采纳
2
回答
代码说它是一个错误类型,但是
、
/usr/bin/
python
parser.add_option("-s", "--second", dest="
tip
= m
浏览 2
提问于2014-09-02
得票数 0
回答已采纳
5
回答
不同小费量的针尖计算器
bill_amount / 100) * 10)twenty = float((bill_amount / 100) * 20)print('10%
Tip
amount is', {'ten.2f'}) print('15%
Tip
amount is',
浏览 4
提问于2022-10-24
得票数 0
4
回答
SkFuzzy给出"ValueError:意外输入:质量“
、
、
、
下面用
PYTHON
编写的代码集,使用SKFUZZY从SCI学习:import numpy as np
tip
['low'] = fuzz.gaussmf(
tip
.universe,10,2)
tip
['high'] = fuzz
浏览 10
提问于2021-04-05
得票数 0
1
回答
技巧计算器在
Python
中四舍五入到小数点2位
在将最终结果舍入到
Python
的小数点2位时,我遇到了问题。它总是只显示一个小数点。我想要33.60美元bill = float (input("what is the total bill?"))calc = (bill/pp
浏览 11
提问于2022-05-07
得票数 1
回答已采纳
2
回答
比尔计算器
、
我刚开始学习
python
,几天来我一直在努力学习编码。我写了账单计算代码,但有一点我不明白。 if <e
浏览 7
提问于2022-10-07
得票数 -1
1
回答
FileNotFoundError - [Errno 2]没有这样的文件或目录:‘/静态/背景. such’- Django
、
我用
Python
,Django框架编写了以下代码: def __init__(self,
tip
): home_name = self.
tip
.fixture.home.name/site-packages/PIL/Image.py in open, line
浏览 3
提问于2020-02-28
得票数 1
回答已采纳
2
回答
用户输入产生“不能将序列乘以‘float’类型的非整型”
、
我是这里的初学者,也是
Python
编程的初学者,目前我正在使用code academy来帮助我学习。:')print (cost)
tip
= input('How much percent of
tip
in decimal:')print "%.2f"
浏览 0
提问于2017-07-03
得票数 2
2
回答
四舍五入函数问题
我目前正在学习
Python
,并致力于编写一个小程序,这是我正在完成的书中的一个任务。我正在使用round()函数,并且在很大程度上它是有效的。有一句话不是这样的,我无论如何也想不出来。: $ ")
tip
2 = bill * .20
tip
2 = round(
tip
2, 2) print("\nA 15%
tip</em
浏览 2
提问于2015-06-12
得票数 2
1
回答
如何在输出中设置两位小数
、
、
、
我试图让
Python
将一个简单的
Tip
Calculator程序的输出四舍五入到小数点后两位,但到目前为止我还没有找到答案。下面是代码的相关部分。: $")) print("\nIf you would like to
tip
the waiter 15%, the amount of the \ntipis: $", low_
tip
) print("
浏览 1
提问于2013-04-17
得票数 0
4
回答
如何在
python
中将输入数字转换为百分比
、
print ("How much does your meal cost")
tip
= 0 meal = (action) <e
浏览 10
提问于2015-01-26
得票数 6
1
回答
Unicode语法XlsxWriter
Python
2模块中的歧义
、
我现在使用
python
2.7.6,并使用XslxWriter模块将一些数据写入excel文件。我有一些unicode数据存储在一个列表中。指令发现 指令说,当您想要使用与unicode字符串和
python
2一起使用的模块时,必须在字符串的第一个输入u!我尝试使用简单的字符串,比如.The,محسن结果很好。
浏览 2
提问于2014-03-25
得票数 1
3
回答
小费计算器返回零
"))
tip
= 15 / 100 你可以在上面看到我做了这个“小费计算器”。
浏览 0
提问于2016-08-23
得票数 0
3
回答
可变尖端计算器输入
、
、
、
这个页面是一个很好的资源,并告诉我需要指向
python
的方向来将输入解释为解决方案中使用的数学。不过,我无法将它在我的脑海中转换成我的代码。")
tip
10 = x * .10
tip
15 = float(
tip
15) to
浏览 0
提问于2019-08-08
得票数 0
回答已采纳
2
回答
只列出hg清单中的工作目录文件和and?
我试图使用以下命令获取当前文件和dirs的列表:然而,这带来了这样一个列表:folder1/blah.cfoo.json
浏览 0
提问于2018-05-19
得票数 6
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
TIP笔记法
流量使用小TIP,请收好
由PHP小tip引发的思考
TIP 20:培养孩子独立学习的能力
SQL注入测试技巧TIP:再从Mysql注入绕过过滤说起
热门
标签
更多标签
云服务器
ICP备案
对象存储
腾讯会议
云直播
活动推荐
运营活动
广告
关闭
领券