LoginSignup
1
0

More than 5 years have passed since last update.

Python > naming > difference > Methods | メソッド | Functions | 関数

Last updated at Posted at 2018-04-05

@ Scipy lecture notes, Edition 2017.1
https://www.scipy-lectures.org/_downloads/ScipyLectures-simple.pdf
p30
2.4.9 Methods

Methods are functions attached to objects.

Python以外の言語も扱う人はMethodsとFunctionsの混同をするかもしれない。

記憶の宮殿

記憶の宮殿にどのように叩き込むか。

案 > Functions

Functionキー(F1やF2など)はくっついている(attached)と使いにくい。だからnot attachedである。
->
Functions: not attached to Objects

(Note: 本当は「attach」はこういう意味では使わないかもしれない。)
https://www.merriam-webster.com/dictionary/attach

案 > Methods

アタチ 来自Method部落 他喜欢附加
后来 他成为了 一位着名艺术家 谁是奇特的 object
(powered by google翻訳 (英語 -> 中国語))

メソド民族のアタチはくっつけることが大好きな少年だった。後年、彼は著名な芸術家となり、オブジェクトへのこだわりを見せる大家となった

全部、嘘の話。

検索用キーワード

  • Function
  • Method

link

1
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0