format()

Messages in english

Modérateur : xcasadmin

compsystems
Messages : 561
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

format()

Message par compsystems » ven. mars 29, 2019 12:36 pm

Hello, I see that format cmd prints linearly and not in 2D

Code : Tout sélectionner

def f():
  DispG
  ClrIO
  printf("%gen %gen",3/5, 4/2)
  printf("{} {}".format(3/5, 4/2))
  printf("{1} {0}".format(3/5, 4/2))

  printf("{} {}".format("one", "two"))
  printf("{1} {0}".format("one", "two"))

Répondre