Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Manually create a hex value
#3
(Feb-21-2020, 12:18 PM)Larz60+ Wrote: the \x is an escape character which says take the following as hexadecimal number
once separated from each other, the \x by itself fails because there is no value immediately following
a = '' + '\xcf'
would work.

Of course, your option works. And how does it differ from my version in the first post ... a = '\xcf' ...?
I want to collect! variable b from two different lines:
'\x' and 'cf' but Python doesn't understand this!
Reply


Messages In This Thread
Manually create a hex value - by Stas43 - Feb-21-2020, 12:00 PM
RE: Manually create a hex value - by Larz60+ - Feb-21-2020, 12:18 PM
RE: Manually create a hex value - by Stas43 - Feb-25-2020, 06:30 AM
RE: Manually create a hex value - by Stas43 - Feb-25-2020, 07:59 AM
RE: Manually create a hex value - by DeaD_EyE - Feb-25-2020, 08:15 AM
RE: Manually create a hex value - by Stas43 - Feb-27-2020, 08:28 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  manually input data jpatierno 0 367 Nov-10-2023, 02:32 AM
Last Post: jpatierno
  User serial/pyserial to send messages to an arudino via terminal manually bkapadia 2 2,778 Mar-10-2021, 11:26 AM
Last Post: Larz60+
  How to manually define color bar scale in seaborn heatmap SriRajesh 3 18,427 Sep-08-2019, 11:12 AM
Last Post: RudraMohan
  how to clear the console when the programm is running (not manually) hello_its_me 5 5,782 Sep-30-2017, 09:14 PM
Last Post: wavic

Forum Jump:

User Panel Messages

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