zoukankan      html  css  js  c++  java
  • python3 下载 以及 练习1 以及 pycharm 专业版 安装

    下载python:

    https://www.python.org/downloads/release/python-365/

    ########sample 1 下载pycharm 社区版本,但是web 开发功能会被屏蔽。

     -> for windows

    社区版与商业版的区别如下: https://www.jetbrains.com/pycharm/features/editions_comparison_matrix.html

    下载python  pycharm 社区版(Community

    https://www.jetbrains.com/pycharm/download/download-thanks.html?platform=windows&code=PCC

    https://blog.csdn.net/chenggong2dm/article/details/9365437

     ->for linux

    Installation Instructions

      • Copy the pycharm-2019.2.tar.gz to the desired installation location 
        (make sure you have rw permissions for that directory)
      • Unpack the pycharm-2019.2.tar.gz file to an empty directory using the following command: 
        tar -xzf pycharm-2019.2.tar.gz
      • Note: A new instance MUST NOT be extracted over an existing one. The target folder must be empty.
      • Remove the pycharm-2019.2.tar.gz to save disk space (optional)
      • Run pycharm.sh from the bin subdirectory

    # 长方形的99乘法
    for i in range(1,10):
    for j in range(1,10):
    print("%d*%d=%2d" % (i, j, i*j),end=" ")
    print("")


    2.我国有13亿人口。年增长率位0.8%, 多少年超过40亿

    i=1
    a=13
    while a<40:
    a=a*(1.008)
    i=i+1
    if a >=40:
    break
    print (i)


    3.编程计算一个班100名学生的平均成绩,然后统计高于平均分的人数


    count = 5
    s = []
    for i in range(count):
    print(i+1)
    name = input('name:')
    score = input('score:')
    t = {}
    t['name'] = name
    t['score'] = int(score)
    s += [t]


    #max = 0
    #min = 0
    all=0
    sum = 0
    for i in range(count):
    sum += s[i]['score']
    a = int(sum/count)
    print(a)

    for i in range(count):

    if a < s[i]['score']:
    all = all + 1
    # if min > s[i]['score']:
    # min = i
    # sum +=s[i]['score']
    #print('max:' + s[max]['name'] + ' ' + str(s[max]['score']))
    #print('min:' + s[min]['name'] + ' ' + str(s[min]['score']))
    print('total:' + str(all))

    PyCharm创建第一个项目

  • 相关阅读:
    long和Long的区别
    C语言的变量的内存分配
    Java蓝桥杯 算法提高 九宫格
    Java实现 蓝桥杯算法提高金明的预算方案
    Java实现 蓝桥杯 算法提高 新建Microsoft world文档
    Java实现 蓝桥杯 算法提高 快乐司机
    Java实现 蓝桥杯 算法提高 三角形
    Java实现 蓝桥杯 算法提高 三角形
    Java实现 蓝桥杯 算法提高 三角形
    Java实现 蓝桥杯 算法提高 三角形
  • 原文地址:https://www.cnblogs.com/feiyun8616/p/9191619.html
Copyright © 2011-2022 走看看