python - getpos() coding -


How to write the getpos () command that should return an existing (X, Y) / P>

It starts like this:

  DEF DPOPO (X100, Y100)  
< P> definitely do not need help

It's a bit underspecified, but it can work :

  def getpos (self): return (self x .f, sfa)  

how to back it a tuple , The value of the example is assumed.


Comments

Popular posts from this blog

ios - Form Sheet content disappearing -

MySql variables and php -

c++ - an enclosing-function local variable cannot be referenced in a lambda body unless if it is in capture list -