0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[poem]話の送り仮名[joke][Python]

Last updated at Posted at 2025-03-15

「話の送り仮名」
「話」を「話し」と書いてはならない。なぜなら、
話=話し だと、
話し=話しし
話しし=話ししし
話ししし=話しししし



となって、無限に長い話となってしまうからである。

コード
hanashi.py
#!/usr/bin/python3
s=""
cnt=0
while True:
    print(f"{s+""*cnt}={s+""*(cnt+1)}")
    cnt+=1
実行
$ head t
話=話し
話し=話しし
話しし=話ししし
話ししし=話しししし
話しししし=話ししししし
話ししししし=話しししししし
話しししししし=話ししししししし
話ししししししし=話しししししししし
話しししししししし=話ししししししししし
話ししししししししし=話しししししししししし
(略)
0
0
0

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?