Skip to content

微信事业群经典面试题:https://jasonlam0990.github.io/2019/04/02/微信事业群面试题:HardMan-LazyMan/

md
实现一个 HardMan:
HardMan(“jack”) 输出:
I am jack

HardMan(“jack”).rest(10).learn(“computer”) 输出
I am jack
//等待10秒
Start learning after 10 seconds
Learning computer

HardMan(“jack”).restFirst(5).learn(“chinese”) 输出
//等待5秒
Start learning after 5 seconds
I am jack
Learning chinese
本站访客数 人次 本站总访问量