Code: Alles auswählen
sys.path.append("c:\entwicklung\python26\lib")
Code: Alles auswählen
sys.path.append("c:\\entwicklung\\python26\\lib")
Code: Alles auswählen
sys.path.append("c:\entwicklung\python26\lib")
Code: Alles auswählen
sys.path.append("c:\\entwicklung\\python26\\lib")
Code: Alles auswählen
>>> print "Mein Name ist %(name)s und ich bin %(alter)i Jahre alt." % {'name':'Max', 'alter':35}
Mein Name ist Max und ich bin 35 Jahre alt.
>>>
Code: Alles auswählen
kw = {}
arr = text.split(" ")
for item in arr:
# dem dictionary hinzufügen bzw. hochzählen
Code: Alles auswählen
x, y, z = attacker.getDefaultVehicle().getPosition()
host.rcon_invoke('"Object.absolutePosition %i/%i/%i"' % (x, y, z))
Code: Alles auswählen
import sys
import unicodedata
inp = sys.argv[1].decode('utf-8')
for char in inp:
print '%s : %s' % (char, unicodedata.name(char))