Convert the decimal numbers expressed in a `numpy.ndarray` into a matrix representing elements in fractional form

Dennis Lee Bieber wlfraed at ix.netcom.com
Mon May 16 11:27:34 EDT 2022


On Mon, 16 May 2022 02:03:26 -0700 (PDT), "hongy... at gmail.com"
<hongyi.zhao at gmail.com> declaimed the following:


>print(lst)

	Printing higher level structures uses the repr() of the structure and
its contents -- theoretically a form that could be used within code as a
literal. If you want human-readable str() you will need to write your own
output loop to do the formatting of the structure, and explicitly print
each item of the structure.


-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
	wlfraed at ix.netcom.com    http://wlfraed.microdiversity.freeddns.org/


More information about the Python-list mailing list