Author Topic: one qeustion ?  (Read 136 times)

sabrisianos

  • Just Joined
  • *
  • Posts: 4
    • View Profile
    • Email
one qeustion ?
« on: January 21, 2010, 08:51:01 AM »
hi ,
i want print something like this
print "wait  *" , time.sleep(0.5) , print "*" , time.sleep(0.5) , print "*"
i can-t print in the same line with , time.sleep
my inglish very bad  but i hope you understand me   :(
Logged

Ahmed Youssef

  • Helping Freak
  • Administrator
  • Active Member
  • *****
  • Posts: 242
    • View Profile
    • WWW
    • Email
Re: one qeustion ?
« Reply #1 on: January 21, 2010, 12:35:14 PM »
استخدم الcomma بعد كل جملة print

Code: [Select]

>>> def dostuff():
...     print "wait..", #NOTICE the COMMA
...     sleep(0.5)
...     print "*",
...     sleep(0.5)
...     print "*",
...
>>> dostuff()
wait.. * *

« Last Edit: January 21, 2010, 12:54:47 PM by Ahmed Youssef »
Logged

Life is just a chance to grow a soul. - A. Powell
Weblog: http://ahmedyoussef.wordpress.com/

sabrisianos

  • Just Joined
  • *
  • Posts: 4
    • View Profile
    • Email
Re: one qeustion ?
« Reply #2 on: January 22, 2010, 07:42:53 AM »
thx
Logged