Skip to content

Commit

Permalink
修改balance属性的返回值的数据类型为float。
Browse files Browse the repository at this point in the history
  • Loading branch information
Raytone-D authored Feb 21, 2018
1 parent 20ce495 commit fec825e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions puppet_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
__author__ = "睿瞳深邃(https://github.com/Raytone-D)"
__project__ = 'Puppet'
__version__ = "0.4.22"
__version__ = "0.4.23"
__license__ = 'MIT'

# coding: utf-8
Expand Down Expand Up @@ -224,7 +224,7 @@ def balance(self):
time.sleep(0.5)
print('可用余额: %s' % ('$'*8))
op.SendMessageW(self.members['可用余额'], MSG['WM_GETTEXT'], 32, self.buff)
return self.buff.value
return float(self.buff.value)

@property
def position(self):
Expand Down

0 comments on commit fec825e

Please sign in to comment.