콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
2970 화면

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
1554
2
8월 25
2709
1
7월 25
1083
1
8월 25
1151
0
5월 25
1508