Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
2830 Представления

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
1420
2
авг. 25
2233
1
июл. 25
770
1
авг. 25
1150
0
мая 25
1263