练习ref、out、directory