Python Forum
It does truncatte where i would ...
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
It does truncatte where i would ...
#2
I don’t understand what and why this code does. But it seems to me that the way rows are structured enables simple approach to get needed part of string:

>>> s = “0xc624 (4): 1842”
>>> s.rsplit(maxsplit=1)[1]
1842
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
It does truncatte where i would ... - by AyUniz - Dec-28-2019, 07:39 PM
RE: It does truncatte where i would ... - by perfringo - Dec-28-2019, 09:45 PM
RE: It does truncatte where i would ... - by AyUniz - Dec-28-2019, 10:24 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020