Formatting example:center, rjust, ljust,rjustljust,string1 = 'N
Formatting example:center, rjust, ljust,rjustljust,string1 = 'N
string1 = 'Now I am here.'print string1.center( 50 )print string1.rjust( 50 )print string1.ljust( 50 )
相关内容
- Generators,,def reverse(
- Draw rectangle with filled color,rectanglefilled,from Tkinter
- Printing ASCII,printingascii,i = 0while i
- Here are two ways to write a table of squares and cubes,squarescube
- Log print message into a file,logmessage,import syspr
- Use list as a stack: push onto stack,stackonto,L = []L.appe
- Zip three tuples,zipthreetuples,T1, T2, T3 =
- in a range,inrange,from math im
- apply function,apply,def func(x,
- keeps '\' (Back splash) literally,splashliterally,x
评论关闭