pythonで関数を定義する
Table of Contents

10を足す関数plus10()を定義するには

def plus10(n):
    return 10*n

と書けば良い.


RedditYahooMyWebFacebook

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License