zoukankan
html css js c++ java
所有参数的和乘以基数
a) 计算打印所有参数的和乘以基数(base=3)的结果
b) 如果参数中最后一个参数为(base=5),则设定基数为5,基数不参与求和计算。
def myfun(*num):
rs=0
for i in num:
rs=rs+i
if num[-1]==5:
re=(rs-5)*5
else:
re=rs*3
return(re)
查看全文
相关阅读:
浅谈隔板法
最短路spaf及dijkstra模板
P1219 最优贸易
P1211 街道赛跑
图结构模板
P1218 过路费
使用Asp.net Identity 创建用户 、登录代码
asp.net identity 介绍
响应式图像
glyphicon 图标的使用
原文地址:https://www.cnblogs.com/themost/p/6358893.html
最新文章
2015年蓝桥杯C/C++ B组题目题解
汇编语言:基于8088/8086
移动平台开发
Android SDK组件:webview笔记
展开字符串
Pasha and Tea
Outlets
DZY Loves Chemistry
Currency System in Geraldion
Key Set
热门文章
Critical Links
Network
迷宫城堡
A Simple Problem with Integers
二分
栈的应用
树的直径
记忆化搜索
考场守则
tarjan知识点梳理
Copyright © 2011-2022 走看看