Help us understand the problem. What is going on with this article?

自己紹介したら、FE聖魔ルーテのように返されるプログラム

戦士ガルシアの息子ロス

少しでも楽しくプログラムをかけるように好きなゲームのFE(ファイアーエムブレム)要素を入れて書いています。Pythonは本格的に初めて1ヶ月ちょいくらいです。

プログラム

import jaconv
from pykakasi import kakasi

sensi = input("父親の職業を入力(漢字かひらがなかカタカナ):")
garusia = input("父親の名前を入力(漢字かひらがなかカタカナ):")
namae = input("自分の名前を入力(漢字かひらがなかカタカナ):")

kakasi = kakasi()#kakasiに、kakasi()を。kakasiは関数名、()は引数リスト
kakasi.setMode('J', 'K')#漢字とカタカナ
kakasi.setMode('H', 'K')#ひらがなとカタカナ
conv = kakasi.getConverter()

kata1 = jaconv.hira2hkata(sensi)
kata2 = jaconv.hira2hkata(garusia)
kata3 = jaconv.hira2hkata(namae)

print("そうですか。"+conv.do(sensi)+conv.do(garusia)+"ノムスコ"+conv.do(namae)+"、長い名前ですね。")

やり方と参考

https://qiita.com/shakechi/items/d12641d6cad01479785f
http://xn--u9j207iixgbigp2p.xn--tckwe/archives/10599
https://qiita.com/komorin0521/items/8cd1eb0cdb4a9ede217e
などを参考にしました。

一つ目のリンク神。
jaconvとkakasiを使えるようにして、あとは特に難しいことはなしでシンプルに。

ネタ元

https://www.nicovideo.jp/watch/sm1322743
(3分15秒〜)

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away