本文整理汇总了Python中Character.Character.say方法的典型用法代码示例。如果您正苦于以下问题:Python Character.say方法的具体用法?Python Character.say怎么用?Python Character.say使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Character.Character
的用法示例。
在下文中一共展示了Character.say方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Character
# 需要导入模块: from Character import Character [as 别名]
# 或者: from Character.Character import say [as 别名]
##
## Project: ForTheWin
## Author: Isaac Kerley
## Project wiki: https://github.com/monkeyboy107/ForTheWin/wiki
##
##
##
##
#######################################################################
from Character import Character
john = Character()
john.name = "John"
bob = Character()
bob.name = "Bob"
john.say("How's it going Bob?")
bob.say("Umm... it's okay... why?")
john.say("...")
bob.say("Anything?")
john.say("Well, I just wanted to say hi.")
bob.say("I don't care.")
john.say("Well screw you Bob!")
bob.say("SCREW ME?!?!?! SCREW YOU?!?!?!?!")
john.say("AAAAAAAAAAAAARRRRRRGGGG!")
bob.say("BBLARGBLARGBLARGBLARG!!!!!")