Python Forum
accessing array without commas
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
accessing array without commas
#1
after detecting pupil through Hough transformation if i am printing the values of the two pupils value i am getting something like this [[[1.0 2.0 3.0]
[4.0 5.0 6.0]]]

But my question is i want to print them differently like A=[1.0 2.0 3.0] and B= [4.0 5.0 6.0]
as i need those differently ,so please any kind soul can help me how can i do this ?
Reply
#2
this is not a valid python list.
you will need to convert to proper list first
Is there a newline in the middle of output?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  help with commas in print functions kronhamilton 11 3,348 Feb-10-2022, 02:02 PM
Last Post: mishraakash
  accessing value array object ortollj 1 1,530 Aug-30-2020, 12:00 PM
Last Post: ortollj
  Help|CSV Writing on List with Inner Commas soothsayerpg 2 2,313 Jul-20-2019, 06:59 AM
Last Post: scidam
  [split] Automate the boring stuff, inserting commas in list srikanth 1 2,078 Jul-02-2019, 02:29 PM
Last Post: metulburr
  Automate the boring stuff, inserting commas in list DJ_Qu 3 4,655 Apr-21-2019, 03:52 PM
Last Post: perfringo
  Printing array without commas pawlaczkaj 1 9,387 Apr-08-2018, 07:05 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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