Falser 发表于 2017-6-7 19:55:10

「我与Python的约会」

从零开始的Python学习笔记~
欢迎各位指导~

Falser 发表于 2017-6-8 12:06:10


temp = input ('请输入一个数字:')
a = int (temp)
b = 1
while a > 0:
    print (b)
    a = a - 1
    b = b + 1

Falser 发表于 2017-6-8 12:14:55

temp = input ('请输入一个数字:')
a = int (temp)
b = 1
while a > 0:
    print (' '*a+'*'*a)
    a -= 1
页: [1]
查看完整版本: 「我与Python的约会」