python常用

1/ #取当前时间.

import time
t=time.ctime

2/ 变量一般用数字,字母和下划线,不用中划线.

 

i='*'
for m in range(10):
    for n in range(m+1):
        print i,
    print ''

 

posted on 2019-08-11 16:57  锋锋2019  阅读(114)  评论(0)    收藏  举报

导航