I want to take the word 'desired' from the example below. How would I do that in python. Like what to do in the case of single line comments as shown below. I have tried something like print text.split(" ")[1] but it will only work in the case where there are no single line comments.
text = /* */
The desired {word}
/* */
Aucun commentaire:
Enregistrer un commentaire