栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

Learning notes P

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Learning notes P

This article is the author s original, reproduced also please indicate the source.
This article only represents the author s own views, for reference only. If you have any objection, you are welcome to discuss.
Forrest
 

Catalog

1.The first python source file

2.The points need to be noticed

3.Example running results

4.The second example

5.The basic format of python program

1.The first python source file

        Firstly, we need to enter the IDLE, then choose file - new file;

        Then a new .py file has been created as no name. Then it needs to be saved with a customized name.
        Below is my example for training.

Figure1: my first python source file 

2.The points need to be noticed

There are fews points need to be noticed:

1. Do not use the blank casually. Because in python syntax, blank indicates indent , 缩进的意思

2.Do not use the chinese charactor like brackets - ( , quotations - , commas- , .

3.Example running results

 Figure2: my first python source file running results

4.The second example

Figure3: my second python source file running results

5.The basic format of python program

        (1). The blank in front of one row, and one Tab(4blanks), intend to decide the level of indentation in a logical way, so it could divide the group of your program.

        (2). The sentence starts from this first character of one row.

Ok, this is the end of our today s lesson learn, please stay tuned on the next episode.

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/266991.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号