首页 > 编程语言 > 详细

hausaufgabe--python 17- Function definition

时间:2017-06-10 00:13:48      阅读:394      评论:0      收藏:0      [点我收藏+]

000-- Euclidean algorithm
技术分享

running result:

技术分享

 

 

001-- Decimal to Bin:

技术分享

 

Running result:

技术分享

 

002-- DRY principle : Don‘t Repeat Yourself

 

003-- using a tupel as a parameter for a function is not applicable. But we still can make it. 

技术分享

 

 

004-- a funtion to calculate x^y

技术分享

 

hausaufgabe--python 17- Function definition

原文:http://www.cnblogs.com/Shareishappy/p/6974154.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!