sh_09_ print multiple separate line

 

sh_09_ print multiple separate line

DEF print_line (char, Times): 

    "" " Print a single line dividing line 

    : param char: separator character 
    : param times: the number of repetitions 
    " "" 
    Print (char * Times) 


DEF print_lines (char, Times): 

    "" " print multiple lines dividing line 

    : param char: dividing line delimiter character used 
    : param times: the number of repetition of the separation line 
    "" " 
    Row = 0 

    the while Row <. 5 : 

        print_line (char, times) 

        Row + =. 1 


print_lines ( " - " , 20 is)

 

Guess you like

Origin www.cnblogs.com/shaohan/p/11519320.html