py,c useful code writing by meself