← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #241480]: Using substring to edit individual characters

 

Question #241480 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/241480

    Status: Open => Answered

obiwan-92 proposed the following answer:
Hello.

Well, if you want to check and change only the second character : 
if dateMeeting[1]=='0': myDate = dateMeeting[0] + dateMeeting[2:]

This type of coding is named Jython. It's just the Python script with some Java library.
Here, we have used only the Python features.

http://docs.python.org/2/library/string.html -> The original Python documentation, you will find your function at the end.
http://www.jython.org/docs/library/string.html -> The real Jython documentation.

The documentation of Sikuli is here : http://doc.sikuli.org/


Regards.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.