Merge pull request #112 from RubyLouvre/master

fix smartgrid bug by size method
fix smartgrid bug by size method
将length改回size()
Merge pull request #386 from shirlyLoveU/master

fix smartgrid bug by the change of size method