Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
2800 Переглядів

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

Аватар
Відмінити
Автор Найкраща відповідь

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

Аватар
Відмінити

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

Can you make my answer as solved?

Автор

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

Найкраща відповідь
qty_position = scan_barcode.replace("-", "'")
Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
вер. 24
1413
2
серп. 25
2177
1
лип. 25
733
1
серп. 25
1150
0
трав. 25
1250