تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
2838 أدوات العرض

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
سبتمبر 24
1423
2
أغسطس 25
2255
1
يوليو 25
793
1
أغسطس 25
1150
0
مايو 25
1269