grzesiek.log
GNU/Linux, networks and other stuff
Sites
Start
My Publications
Thursday, November 18, 2010
"if ($answer =~ /Y|y/)" Python też tak może
import re
import sys
print "...[Y/N]?"
answer = sys.stdin.read(1)
if re.search("Y|y",answer):
print "tak"
elif re.search("N|n",answer):
print "nie"
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment