mirror of
https://github.com/undera/pylgbst.git
synced 2020-11-18 19:37:26 -08:00
Add printing said text
This commit is contained in:
parent
8ccdfa7d9b
commit
a7094d5392
@ -12,6 +12,7 @@ try:
|
||||
|
||||
|
||||
def say(text):
|
||||
print("%s" % text)
|
||||
if isinstance(text, str):
|
||||
text = text.decode("utf-8")
|
||||
md5 = hashlib.md5(text.encode('utf-8')).hexdigest()
|
||||
@ -28,7 +29,7 @@ try:
|
||||
subprocess.call("mplayer %s" % fname, shell=True, stderr=fnull, stdout=fnull)
|
||||
except BaseException:
|
||||
def say(text):
|
||||
sys.stdout.write("%s\n", text)
|
||||
print("%s" % text)
|
||||
|
||||
forward = FORWARD = right = RIGHT = 1
|
||||
backward = BACKWARD = left = LEFT = -1
|
||||
|
Loading…
x
Reference in New Issue
Block a user