コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
2820 ビュー

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
1416
2
8月 25
2206
1
7月 25
752
1
8月 25
1150
0
5月 25
1259