Bottom Page

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 ?
Quote
#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?
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Automate the boring stuff, inserting commas in list DJ_Qu 3 80 Apr-21-2019, 03:52 PM
Last Post: perfringo
  N-Dim array manipulation in a loop, getting IndexError: too many indices for array cesardepaula 1 171 Mar-13-2019, 01:39 AM
Last Post: scidam
  Accessing Files In A Folder asilverg 1 119 Feb-15-2019, 08:08 AM
Last Post: buran
  accessing Sybase (ASE and/or Anywhere) via ODBC... on Linux zatlas1 0 138 Jan-31-2019, 06:48 PM
Last Post: zatlas1
  Accessing Files via Mobaxterm Omer123 1 178 Jan-23-2019, 12:33 AM
Last Post: micseydel
  Accessing IBM MQ using Python Rajeshs16 6 510 Oct-22-2018, 02:39 PM
Last Post: Larz60+
  accessing globals from a function Skaperen 8 555 Sep-01-2018, 11:50 PM
Last Post: Skaperen
  Accessing first list element when at end of loop! JY450 1 295 Aug-14-2018, 12:50 PM
Last Post: perfringo
  Accessing a dictionary - KeyError ?? eoins 1 509 Jun-06-2018, 06:14 AM
Last Post: wavic
  Printing array without commas pawlaczkaj 1 1,335 Apr-08-2018, 07:05 PM
Last Post: Larz60+

Forum Jump:


Users browsing this thread: 1 Guest(s)