python3 での print format でのエラー

正しい書き方かどうかまだ勉強中ですが、とりあえず、下記にて動作しました。

[python]
def hello(self):
print(‘こんにちは。%s さん’ % (self.name))

[/python]

This entry was posted in Python, 技術情報. Bookmark the permalink.

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です