jerry-git / jerry-git/learn-python3

I don't understand this code

オープン
#42 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
HTML
スター
6.9k
フォーク
1.8k
PR マージ指標
30日以内にマージされた PR はありません

説明

class SpecialString:
def __init__(self, cont):
self.cont = cont

def __truediv__(self, other):
line = "=" * len(other.cont)
return "\n".join([self.cont, line, other.cont])

spam = SpecialString("spam")
hello = SpecialString("Hello world!")
print(spam / hello)

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。