当前位置: 首页 > news >正文

哪个网站可以免费做推广/线上推广费用

哪个网站可以免费做推广,线上推广费用,简单做网站用什么软件,河南住房和城乡建设局网站题目内容来自网络 ,加入了个人理解的过程 ,和点评 #! /usr/bin/python # -*- coding:utf-8 -*-""" request : 题目:企业发放的奖金根据利润提成。利润(I)低于或等于10万元时,奖金可提10%; 利润高于10万…

题目内容来自网络 ,加入了个人理解的过程 ,和点评


#! /usr/bin/python
# -*- coding:utf-8 -*-"""
request :
题目:企业发放的奖金根据利润提成。利润(I)低于或等于10万元时,奖金可提10%;
利润高于10万元,低于20万元时,低于10万元的部分按10%提成,高于10万元的部分,可提成7.5%;
20万到40万之间时,高于20万元的部分,可提成5%;40万到60万之间时高于40万元的部分,可提成3%;
60万到100万之间时,高于60万元的部分,可提成1.5%,高于100万元时,超过100万元的部分按1%提成,
从键盘输入当月利润I,求应发放奖金总数?
"""#define two lists
# method 1
revenue=[1000000,600000,400000,200000,100000,0]
deduct=[0.01,0.015,0.03,0.05,0.075,0.1]
profit = int(raw_input("please enter the revenue:"))
earning = 0
for x  in range(len(deduct)):if profit > revenue[x]:earning+=(profit-revenue[x])*deduct[x]profit=revenue[x]
print earning#method 2  ,求出每个区间的数据
nprofit = int(raw_input("please enter the revenue:"))
nrevenue=[1000000,600000,400000,200000,100000,0]
ndeduct=[0.01,0.015,0.03,0.05,0.075,0.1]
# define an new list to put this data  in
nearning = 0
newprofit =[]
for x in range(len(nrevenue)):if nprofit > nrevenue[x]:nearning = (nprofit - nrevenue[x])   # 计算每个区间段的数据值nprofit = nrevenue[x]newprofit.append(nearning)else:newprofit.append(0)  # 用 zero 填充默认值 ,相乘后不影响结果
# try to using lambda
zipdata = zip(newprofit,ndeduct)
print zipdata
trynew = sum(map(lambda (x,y):x*y,zipdata))   # x, y  是一个zipdata 中的元组 tuple
print trynew                                  # 这个地方很容易跟spark 中的map  reduce 混淆#method 3, 考虑用列表推到  ??# result :
"""
please enter the revenue:100000000
1029500.0
please enter the revenue:100000000
[(99000000, 0.01), (400000, 0.015), (200000, 0.03), (200000, 0.05), (100000, 0.075), (100000, 0.1)]
1029500.0
"""


http://www.lbrq.cn/news/833797.html

相关文章:

  • 网站安装步骤页面/网店怎么推广和宣传
  • 百度网站如何做运营/泉州网站关键词排名
  • 黄骅市在哪里/网站快速排名优化
  • 网站建设和建议/2022年新闻大事
  • 雄安建站服务/竞价如何屏蔽恶意点击
  • 公众号制作网页/百度爱采购关键词优化
  • wordpress上传后如何访问/合肥seo按天收费
  • 青海住房建设厅网站/百度收录什么意思
  • wordpress 博客搭建/免费使用seo软件
  • 电子商务微网站制作/合肥seo网络优化公司
  • 成都生活家装饰公司总部电话/seo教程技术
  • ps做素材下载网站有哪些/站长工具官网
  • 在线做任务的网站/百度营销网页版
  • 兰州网站程序建设/百度网页版进入
  • wordpress avada 加速/佛山旺道seo
  • 深圳市官网网站建设哪家好/免费seo搜索优化
  • 长春做企业网站多少钱/免费发布信息网站大全
  • 哪个网站做兼职可靠/淘宝引流推广怎么做
  • 长沙seo网站排名/赣州seo优化
  • 恶意网站的防治/关键词在线优化
  • 太原网站建设制作/互联网销售是什么意思
  • dedecms5.7 整个网站 css和js代码怎么优化/精准粉丝引流推广
  • wordpress访问加速/seo优化几个关键词
  • 网站办理8元套餐/站内推广方案
  • 做拆分盘网站/沈阳网络优化培训
  • 2014 网站建设/手机百度搜索引擎入口
  • 泰兴网站制作/下载百度app到手机上
  • 商标被注册了做网站/购物网站制作
  • 优化网站的步骤/seo链接优化建议
  • 做网站所需知识/百度app免费下载
  • 题解:CF1617C Paprika and Permutation
  • 网络原理 ——HTTPS
  • stack and queue 之牛刀小试
  • 文献分享0719
  • Java集合框架中List常见问题
  • 基于单片机公交车报站系统/报站器