首页 / PYTHON / Core Python | 2 - Core Python: Getting Started | 2.2 - Installing and Starting Python | 2.2.7 - Summ
Core Python | 2 - Core Python: Getting Started | 2.2 - Installing and Starting Python | 2.2.7 - Summ
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Core Python | 2 - Core Python: Getting Started | 2.2 - Installing and Starting Python | 2.2.7 - Summ,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1790字,纯文字阅读大概需要3分钟。
内容图文
![Core Python | 2 - Core Python: Getting Started | 2.2 - Installing and Starting Python | 2.2.7 - Summ](/upload/InfoBanner/zyjiaocheng/608/01a40bd085884d6db73a3b2b041fd3f1.jpg)
Congratulations! You've taken your first steps in Python, and you're well on your way to reading and writing much more sophisticated Python programs. In this module, we saw how to download and install Python on Windows, Linux and macOS. We covered starting your Python REPL. We evaluated some simple expressions in the REPL. We learned that in the REPL, the underscore symbol is bound to the result of the last evaluated expression. We saw how to make basic use of the print function, and we learned that the printed output is a side effect of the function, not a return value. We saw how to exit the REPL using Ctrl+Z on Windows and Ctrl+D on Linux and macOS. We were introduced to Python's use of significant whitespace. We learned that code blocks in python are initiated with a colon and comprise consecutive lines at the same indentation level. We looked at some of the advantages of significant whitespace, including clarity and consistency. We covered the basic rules for indentation in Python. On a less technical level, we covered some parts of Python's culture. We looked at the Zen of Python and saw that it could be printed by executing import this in the REPL, and we looked specifically at the idea that readability counts when writing Python code. We covered the basics of importing modules from the standard library, and we saw three forms of the import statement, importing an entire module, importing selected elements of a module, and renaming imported elements. We saw how to use Python's help system. Along the way, we saw how to use the factorial function from Python's standard math library. In the next module of Core Python: Getting Started, we'll look at Python's fundamental scalar types, integers, floats, nones, and bools, as well as some basic flow control constructs.
内容总结
以上是互联网集市为您收集整理的Core Python | 2 - Core Python: Getting Started | 2.2 - Installing and Starting Python | 2.2.7 - Summ全部内容,希望文章能够帮你解决Core Python | 2 - Core Python: Getting Started | 2.2 - Installing and Starting Python | 2.2.7 - Summ所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。