[Python] Python3 : Remove Arabic Punctuation

Discussão em 'Python' iniciado por Stack, Maio 1, 2025.

  1. Stack

    Stack Membro Participativo

    I'm working in Arabic text , I want to remove the Arabic Punctuation Example :

    s="أهلاً بالعالم في هذه التجربة ! علامات ،الترقيم ؟ ,? لا .اتذكرها"


    I want the output to remove " ؟ ، " also because when I use:

    import string
    tr= str.maketrans("","", string.punctuation)


    the output was 'أهلاً بالعالم في هذه التجربة علامات ،الترقيم ؟ لا اتذكرها'

    Continue reading...

Compartilhe esta Página