Strings

Joshua Muskovitz joshm at taconic.net
Fri Jan 18 14:55:20 EST 2002


And just because there are so many ways to do things in Python:

dir = "C:/Files/Games/Pygame"
newDir = '\\'.join(dir.split('/'))

--
# Joshua Muskovitz
# joshm at taconic.net
def lyyrs(sig): return '-'.join(sig.split()+["ly y'rs"])
lyyrs('Hire me!  I need the work!')




-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----



More information about the Python-list mailing list