码迷,mamicode.com
首页 > 编程语言 > 详细

hausaufgabe--python 17- Function definition

时间:2017-06-10 00:31:16      阅读:150      评论:0      收藏:0      [点我收藏+]

标签:not   bin   for   cli   bsp   .com   技术   euc   run   

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

标签:not   bin   for   cli   bsp   .com   技术   euc   run   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!