美文网首页python学习笔记
python练手_45-求和

python练手_45-求和

作者: 学子CH | 来源:发表于2019-02-15 20:27 被阅读0次
    # -*- coding:utf-8 -*-
    # @Author: CH
    """
    @project: python study
    @time:2019/1/7-23:23
    @file_name:【程序45】求和.py
    @IDE:PyCharm 
    @else: DO NOT STOP STUDYING!!!
    """
    # 题目 统计 1 到 100 之和。
    #
    # 程序分析 无
    res=0
    for i in range(1,101):
        res+=i
    print(res)
    
    

    相关文章

      网友评论

        本文标题:python练手_45-求和

        本文链接:https://www.haomeiwen.com/subject/gnameqtx.html