Python学习笔记——如何运行py文件和简单变量
发布日期:2021-05-14 10:19:21 浏览次数:15 分类:精选文章

本文共 1782 字,大约阅读时间需要 5 分钟。

������������ Python ���������

���������������������������������

��������� Windows cmd ������������������������������

python

��������������������� >>>������������������������ Python ���������

��������������� cmd ��������� Python scripts

  • ��������������������� python��������� Python ������������
  • ��������������������������������������� PATH ������������������������������������������������������������������
  • python path/to/your_script.py

    ���������

    python Hello_World.py

    ������������������ IDE

    ������������������ PyCharm ������������������������������������������������������������������������������������������������


    ������

    ������������������

    ��� Python ������������������������������������������������������������������

  • ���������������������������������������������������������������������������������������������
  • ���������������
    • message_1 ���������������
    • 1_message ���������������������
  • ������������

    ���������������������������������������

    False class finally is return
    None continue for lambda try
    True def from nonlocal while
    and del global not with
    as elif if or yield
    assert else import pass
    break except in raise

    ������������

  • ��������������������������������������������������������������� name ��� n ���������
  • ��������������������������������� student_name ��� s_n ������������
  • ��������������������������������������� l ��� O ���������������������������������������������

  • ���������������

    ������������������������������������������������������

    name = "ada lovelace"
    print(name.title()) # ���������������Ada Lovelace

    ��������������������������������������������������������������������������� C ���������������������������������


    ������������������������������

    ��� Python ������������������������ **���

    a = 2
    result = a ** 3 # ���������8

    ���������������������������������������

    上一篇:Python学习笔记——列表
    下一篇:pycharm如何修改字体大小和背景成护眼色

    发表评论

    最新留言

    不错!
    [***.144.177.141]2025年04月06日 03时03分44秒