Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
2841 Visualizzazioni

Hi everyone, I have a problem with code.

In this part:

qty_position = scan_barcode.find('-')

I need replace symbol - with symbol

qty_position = scan_barcode.find(''')

the problem is that with this new symbol, code after change like if is it:

""" Text """

How I can do?

Thanks very much

Avatar
Abbandona
Autore Risposta migliore

Thanks Hassan, it work!

Can I ask an other question, If I need:

qty_position = scan_barcode.find("'" or "*")

it's possible to do this? What's the correct code?

Thanks

Avatar
Abbandona

qty_position = scan_barcode.replace("'", "").replace("*","")

Can you make my answer as solved?

Autore

Hi Hassan, thanks for you help! I would like make your answer as solved, but I can not because forum need 5 Karma for make it, and I have not its. I don't know how I can do

Risposta migliore
qty_position = scan_barcode.replace("-", "'")
Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
set 24
1423
2
ago 25
2297
1
lug 25
825
1
ago 25
1150
0
mag 25
1274