资 源 简 介
The pastiche software framework brings a variety of technologies together, like semantic web, multi-agent and distributed systems. It is designed for ease of use and fun.
This is a continuation of previous work done on Spyse.
Still thinking about a number of ideas.
```
#!/usr/bin/env python
"""Hello World example program from the Spyse tutorial"""
from spyse.core.agents.agent import Agent
from spyse.core.behaviours.behaviours import Behaviour
from spyse.app.app import App
Define a custom behaviour class
class HelloBehaviour(Behaviour):
# Customize the Behaviour class by overriding action()
def action(self):
# The action:
print "Hello, world"
# Mark this behaviour as finished so that it will be removed
#