python1.-输入一个整数n,输出从1到n的数字JAY.LIN 收录于 未分类 2023-11-14 约 78 字 预计阅读 1 分钟 目录 python1. 输入一个整数n,输出从1到n的数字 # 1. 输入一个整数n,输出从1到n的数字 i = int(input("请输入一个整数:")) for a in range(1, i+1): print(f"{a}", end="\t") else: print()Please enable JavaScript to view the comments powered by Giscus.