跳至内容
菜单
此问题已终结
2 回复
2810 查看

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("-", "'")
形象
丢弃
相关帖文 回复 查看 活动
2
9月 24
1415
2
8月 25
2193
1
7月 25
747
1
8月 25
1150
0
5月 25
1254