sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #22981
Re: [Question #241480]: Using substring to edit individual characters
Question #241480 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/241480
Description changed to:
Hey there (using Sikuli r930 and Windows
Vista 32 bit.)
Sorry if this is woefully basic but i have been unable to find any
information on using substring (or the equivalent function)
I am trying to edit the following string;
dateMeeting = input("Please Enter the Date of the
Meeting:","dd/mm/yyyy")
#if a date like 03/10/1990 is entered, i want to edit the dateMeeting
variable so that it no longer starts with "0"
if dateMeeting.substring(0) == 0:
myDate = dateMeeting.substring(1,10)
print myDate
else:
print dateMeeting
essentially need help with editing specific character positions within a
string.
Many thanks
Australia
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.