mqvc Posted January 9, 2010 at 03:51 PM Report Share #305001 Posted January 9, 2010 at 03:51 PM boa tarde! preciso de saber como é que posso criar tabelas no python? e como e que se faz o espaçamento.. obrigado Link to comment Share on other sites More sharing options...
JoaoRodrigues Posted January 9, 2010 at 06:13 PM Report Share #305038 Posted January 9, 2010 at 06:13 PM Tabelas como? Dá uma olhadela aqui: http://docs.python.org/library/stdtypes.html#string-formatting Link to comment Share on other sites More sharing options...
mqvc Posted January 9, 2010 at 06:39 PM Author Report Share #305042 Posted January 9, 2010 at 06:39 PM uma tabela que imprima os primeiros 10 logaritmos de base dez que fique da forma: x logx 1 .... 2 .... 3 .... . . . 10 .... Link to comment Share on other sites More sharing options...
JoaoRodrigues Posted January 9, 2010 at 07:00 PM Report Share #305044 Posted January 9, 2010 at 07:00 PM Então, tens que definir quanto espaço queres entre o número e o logaritmo. Por exemplo, um tab. print "x\ty" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now