#!/usr/bin/python
#coding=gb2312
class Worker:
def __init__(self,name,pay):
self.name=name;
self.pay=pay;
def lastName(self):
return self.name.split()[0];
def giveRaise(self,percent):
self.pay*=(1.0+percent);
bob=Worker('ken', 5000000);
print bob.lastName();
print bob.giveRaise(.10);
print bob.pay;