各メソッド・クラスの書き方のソースを表示
←
各メソッド・クラスの書き方
ナビゲーションに移動
検索に移動
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、以下のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
<div class=WordSection1 style='layout-grid:18.0pt'> <p class=MsoNormal align=center style='text-align:center'><b><span style='font-size:20.0pt'>各言語比較<span lang=EN-US>~</span>クラス・メソッド版<span lang=EN-US>~</span>の<span lang=EN-US>wiki</span></span></b></p> <p class=MsoNormal>各クラス・メソッドについて比較しました。</p> <p class=MsoNormal align=center style='text-align:center'><b><span style='font-size:16.0pt'>メソッド</span></b></p> <p class=MsoNormal><span lang=EN-US style='font-size:16.0pt'>Java</span></p> <p class=MsoNormal align=left style='text-align:left;line-height:14.25pt; background:#1E1E1E'><span lang=EN-US style='font-family:Consolas;color:#D4D4D4'> </span><span style='font-family:"MS Pゴシック";color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#569CD6'>public</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#569CD6'>static</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#4EC9B0'>void</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#DCDCAA'>main</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>(</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#4EC9B0'>String</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>[] </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#9CDCFE'>args</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>){</span></p> <p class=MsoNormal align=left style='text-align:left;line-height:14.25pt; background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt;font-family:Consolas; color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#6A9955'>//main</span><span style='font-size:14.0pt;font-family:"MS Pゴシック";color:#6A9955'>メソッドの処理</span></p> <p class=MsoNormal align=left style='text-align:left;line-height:14.25pt; background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt;font-family:Consolas; color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#569CD6'>static</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#4EC9B0'>int</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#9CDCFE'>x</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'> = </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#DCDCAA'>sufee</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>(</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#B5CEA8'>4</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>,</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#B5CEA8'>2</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>,</span><span style='font-size:14.0pt;font-family:"MS Pゴシック";color:#D4D4D4'>・・・</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>);</span></p> <p class=MsoNormal align=left style='text-align:left;line-height:14.25pt; background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt;font-family:Consolas; color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#DCDCAA'>sufee</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>();</span></p> <p class=MsoNormal align=left style='text-align:left;line-height:14.25pt; background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt;font-family:Consolas; color:#D4D4D4'> }</span></p> <p class=MsoNormal align=left style='text-align:left;line-height:14.25pt; background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt;font-family:Consolas; color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#569CD6'>static</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#4EC9B0'>int</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#DCDCAA'>sufee</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>(</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#4EC9B0'>int</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'> </span><span style='font-size:14.0pt;font-family:"MS Pゴシック";color:#9CDCFE'>仮引数</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#9CDCFE'>1</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>,</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#4EC9B0'>int</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'> </span><span style='font-size:14.0pt;font-family:"MS Pゴシック";color:#9CDCFE'>仮引数</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#9CDCFE'>2</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>,</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#4EC9B0'>int</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'> </span><span style='font-size:14.0pt;font-family:"MS Pゴシック";color:#D4D4D4'>・・・</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>){</span></p> <p class=MsoNormal align=left style='text-align:left;line-height:14.25pt; background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt;font-family:Consolas; color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#6A9955'>//</span><span style='font-size:14.0pt;font-family:"MS Pゴシック";color:#6A9955'>メソッドの処理</span></p> <p class=MsoNormal align=left style='text-align:left;line-height:14.25pt; background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt;font-family:Consolas; color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#C586C0'>return</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'> x;</span></p> <p class=MsoNormal align=left style='text-align:left;line-height:14.25pt; background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt;font-family:Consolas; color:#D4D4D4'> }</span></p> <p class=MsoNormal align=left style='text-align:left;line-height:14.25pt; background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt;font-family:Consolas; color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#569CD6'>static</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#4EC9B0'>void</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#DCDCAA'>sufee</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>(){</span></p> <p class=MsoNormal align=left style='text-align:left;line-height:14.25pt; background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt;font-family:Consolas; color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#6A9955'>//</span><span style='font-size:14.0pt;font-family:"MS Pゴシック";color:#6A9955'>メソッドの処理</span></p> <p class=MsoNormal align=left style='text-align:left;line-height:14.25pt; background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt;font-family:Consolas; color:#D4D4D4'> }</span></p> <p class=MsoNormal align=left style='text-align:left;line-height:14.25pt; background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt;font-family:Consolas; color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#569CD6'>public</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#4EC9B0'>int</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#DCDCAA'>sufee</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>(</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#4EC9B0'>int</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#9CDCFE'>x</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>,</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#4EC9B0'>int</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#9CDCFE'>y</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>){</span></p> <p class=MsoNormal align=left style='text-align:left;line-height:14.25pt; background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt;font-family:Consolas; color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#6A9955'>//</span><span style='font-size:14.0pt;font-family:"MS Pゴシック";color:#6A9955'>メソッドの処理</span></p> <p class=MsoNormal align=left style='text-align:left;line-height:14.25pt; background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt;font-family:Consolas; color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#C586C0'>return</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#9CDCFE'>x</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>;</span></p> <p class=MsoNormal align=left style='text-align:left;line-height:14.25pt; background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt;font-family:Consolas; color:#D4D4D4'> }</span></p> <p class=MsoNormal><span lang=EN-US>void</span>って言うのは、<span lang=EN-US>return</span>する値はありませんよって言う宣言なんだよ!</p> <p class=MsoNormal><span lang=EN-US style='font-size:18.0pt'>C</span></p> <p class=MsoNormal align=left style='text-align:left;text-indent:42.0pt; line-height:14.25pt;background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt; font-family:Consolas;color:#569CD6'>int</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#DCDCAA'>main</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>(</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#569CD6'>void</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>){</span></p> <p class=MsoNormal align=left style='text-align:left;line-height:14.25pt; background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt;font-family:Consolas; color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#6A9955'>//main</span><span style='font-size:14.0pt;font-family:"MS Pゴシック";color:#6A9955'>メソッド処理</span></p> <p class=MsoNormal align=left style='text-align:left;line-height:14.25pt; background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt;font-family:Consolas; color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#DCDCAA'>sufee</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>();</span></p> <p class=MsoNormal align=left style='text-align:left;line-height:14.25pt; background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt;font-family:Consolas; color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#DCDCAA'>sufee</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>(</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#B5CEA8'>3</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>,</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#B5CEA8'>5</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>);</span></p> <p class=MsoNormal align=left style='text-align:left;text-indent:42.0pt; line-height:14.25pt;background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt; font-family:Consolas;color:#D4D4D4'>}</span></p> <p class=MsoNormal align=left style='text-align:left;line-height:14.25pt; background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt;font-family:Consolas; color:#D4D4D4'> </span></p> <p class=MsoNormal align=left style='text-align:left;text-indent:42.0pt; line-height:14.25pt;background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt; font-family:Consolas;color:#569CD6'>void</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#DCDCAA'>sufee</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>(</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#569CD6'>void</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>){</span></p> <p class=MsoNormal align=left style='text-align:left;line-height:14.25pt; background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt;font-family:Consolas; color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#6A9955'>//</span><span style='font-size:14.0pt;font-family:"MS Pゴシック";color:#6A9955'>メソッド処理</span></p> <p class=MsoNormal align=left style='text-align:left;text-indent:42.0pt; line-height:14.25pt;background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt; font-family:Consolas;color:#D4D4D4'>}</span></p> <p class=MsoNormal align=left style='text-align:left;line-height:14.25pt; background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt;font-family:Consolas; color:#D4D4D4'> </span></p> <p class=MsoNormal align=left style='text-align:left;text-indent:42.0pt; line-height:14.25pt;background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt; font-family:Consolas;color:#569CD6'>static</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#569CD6'>int</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#DCDCAA'>sufee</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>(</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#569CD6'>int</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#9CDCFE'>x</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>,</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#569CD6'>int</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#9CDCFE'>y</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'>){</span></p> <p class=MsoNormal align=left style='text-align:left;line-height:14.25pt; background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt;font-family:Consolas; color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#6A9955'>//</span><span style='font-size:14.0pt;font-family:"MS Pゴシック";color:#6A9955'>メソッド処理</span></p> <p class=MsoNormal align=left style='text-align:left;line-height:14.25pt; background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt;font-family:Consolas; color:#D4D4D4'> </span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#C586C0'>return</span><span lang=EN-US style='font-size:14.0pt;font-family:Consolas;color:#D4D4D4'> x;</span></p> <p class=MsoNormal align=left style='text-align:left;text-indent:42.0pt; line-height:14.25pt;background:#1E1E1E'><span lang=EN-US style='font-size:14.0pt; font-family:Consolas;color:#D4D4D4'>}</span></p> <p>【注意】cは、mainメソッドの前に、各種のメソッドを宣言しなければいけないよ!</p> <p class=MsoNormal><span lang=EN-US style='font-size:18.0pt'>Python</span><span style='font-size:18.0pt'>3</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#569CD6'>def</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#DCDCAA'>sufee</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>(</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#9CDCFE'>x</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>):</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><u><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span></u><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#6A9955'>#</span><span style='font-size:16.0pt;font-family:"MS Pゴシック";color:#6A9955'>メソッド処理</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><u><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span></u><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#C586C0'>return</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> x</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#569CD6'>def</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#DCDCAA'>sufee</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>():</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><u><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span></u><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#6A9955'>#</span><span style='font-size:16.0pt;font-family:"MS Pゴシック";color:#6A9955'>メソッド処理</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#6A9955'>(void)</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#6A9955'>#main</span><span style='font-size:16.0pt;font-family:"MS Pゴシック";color:#6A9955'>メソッド処理</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>y = sufee(x)</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>sufee()</span></p> <p class=MsoNormal align=left style='text-align:left'>※<span lang=EN-US>main</span>を下に書くのは、先に別のメソッドを参照しなければ使えないのだ。<span lang=EN-US>Python</span>の場合</p> <p class=MsoNormal align=center style='text-align:center'><span style='font-size:16.0pt'>クラス</span></p> <p class=MsoNormal><span lang=EN-US style='font-size:18.0pt'>Java</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#569CD6'>class</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#4EC9B0'>A</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>{</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#569CD6'>static</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#4EC9B0'>int</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#9CDCFE'>num1</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> = </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#B5CEA8'>0</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>;</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#569CD6'>static</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#4EC9B0'>int</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#9CDCFE'>num2</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> = </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#B5CEA8'>0</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>;</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#569CD6'>static</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#4EC9B0'>int</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#9CDCFE'>num3</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> = </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#B5CEA8'>0</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>;</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#569CD6'>static</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#4EC9B0'>void</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#DCDCAA'>init</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>(</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#4EC9B0'>int</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#9CDCFE'>num1</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>,</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#4EC9B0'>int</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#9CDCFE'>num2</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>,</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#4EC9B0'>int</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#9CDCFE'>num3</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>){</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#569CD6'>this</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>.</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#9CDCFE'>num1</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> = </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#9CDCFE'>num1</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>;</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#569CD6'>this</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>.</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#9CDCFE'>num2</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> = </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#9CDCFE'>num2</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>;</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#569CD6'>this</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>.</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#9CDCFE'>num3</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> = </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#9CDCFE'>num3</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>;</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> }</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#569CD6'>static</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#4EC9B0'>int</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#DCDCAA'>sufee_get</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>(){</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#C586C0'>return</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#9CDCFE'>num2</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>;</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> }</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>}</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#569CD6'>class</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#4EC9B0'>B</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>{</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#569CD6'>public</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#569CD6'>static</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#4EC9B0'>void</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#DCDCAA'>main</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>(</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#4EC9B0'>String</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>[] </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#9CDCFE'>args</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>){</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#4EC9B0'>A</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#9CDCFE'>num</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> = </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#C586C0'>new</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#DCDCAA'>A</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>();</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#4EC9B0'>int</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#9CDCFE'>x</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> = </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#9CDCFE'>num</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>.</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#DCDCAA'>sufee_get</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>();</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> }</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>}</span></p> <p class=MsoNormal><span lang=EN-US> </span></p> <p class=MsoNormal><span lang=EN-US style='font-size:18.0pt'>C</span></p> <p class=MsoNormal align=center style='text-align:center'><span style='font-size:16.0pt;color:red'>準備中</span></p> <p class=MsoNormal><span lang=EN-US style='font-size:18.0pt'>Python</span><span style='font-size:18.0pt'>3</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#6A9955'>#!/usr/bin/python3</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#569CD6'>class</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#4EC9B0'>Amao</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>:</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> msg = </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#B5CEA8'>2</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#569CD6'>def</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#DCDCAA'>__init__</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>(</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#9CDCFE'>self</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>):</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#569CD6'>self</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>.msg = </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#4EC9B0'>int</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>(</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#B5CEA8'>4649</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>) </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#6A9955'>#__(</span><span style='font-size:16.0pt;font-family:"MS Pゴシック";color:#6A9955'>関数名</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#6A9955'>)</span><span style='font-size:16.0pt;font-family:"MS Pゴシック";color:#6A9955'>は非公開であるという宣言</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#DCDCAA'>@</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#4EC9B0'>property</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#6A9955'>#</span><span style='font-size:16.0pt;font-family:"MS Pゴシック";color:#6A9955'>デフォルトで呼び出される</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#569CD6'>def</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#DCDCAA'>sum_A</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>(</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#9CDCFE'>self</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>):</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#C586C0'>return</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#569CD6'>self</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>.msg</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#DCDCAA'>@sum_A.setter</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#569CD6'>def</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#DCDCAA'>sum_A</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>(</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#9CDCFE'>self</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>,</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#9CDCFE'>num</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>):</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#6A9955'>#getter(@property)</span><span style='font-size:16.0pt;font-family:"MS Pゴシック";color:#6A9955'>と同じ名前にする。</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#569CD6'>self</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>.msg = </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#569CD6'>self</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>.msg + num</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#6A9955'>#class B(Amao): #(A)</span><span style='font-size:16.0pt;font-family:"MS Pゴシック";color:#6A9955'>をつけると</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#6A9955'>class A</span><span style='font-size:16.0pt;font-family:"MS Pゴシック";color:#6A9955'>の処理をやってくれるって意味</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#6A9955'># def print_B(self):</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'> </span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#6A9955'>#</span><span style='font-size:16.0pt;font-family:"MS Pゴシック";color:#6A9955'>処理</span></p> <p class=MsoNormal align=left style='margin-bottom:12.0pt;text-align:left; background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas; color:#D4D4D4'> </span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>an = Amao()</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#DCDCAA'>print</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>(an.sum_A)</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>an.sum_A = (</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#B5CEA8'>12345</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>)</span></p> <p class=MsoNormal align=left style='text-align:left;background:#1E1E1E'><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#DCDCAA'>print</span><span lang=EN-US style='font-size:16.0pt;font-family:Consolas;color:#D4D4D4'>(an.sum_A)</span></p> <p class=MsoNormal align=left style='text-align:left;line-height:14.25pt; background:#1E1E1E'><span lang=EN-US style='font-family:Consolas;color:#D4D4D4'> </span></p> <p class=MsoNormal><span lang=EN-US> </span></p> </div>
各メソッド・クラスの書き方
に戻る。
案内メニュー
個人用ツール
アカウント作成
ログイン
名前空間
ページ
議論
日本語
表示
閲覧
ソースを閲覧
履歴表示
その他
検索
案内
メインページ
最近の更新
おまかせ表示
MediaWikiについてのヘルプ
コード系
Program
PHP
Java
Python
Swift
JavaScript
HTML
CSS
C言語
MySQL
サーバー系
Apache2
OS系
Debian
kail
アプリケーション系
Xcode
Android Studio
計算系
ファイル系
速度系
メモ・業務
My命名規則
ツール
リンク元
関連ページの更新状況
特別ページ
ページ情報
編集
左メニュー
動画挿入について
動画・音声を追加する
JavaScriptを埋め込む
ページにリダイレクトを指定する