编程语言应用

注册

 

发新话题 回复该主题

python程序设计基础十三 [复制链接]

1#
北京哪里有治白癜风的 http://www.txbyjgh.com/
python程序设计基础(十三)01:58来自LearningYard学苑

python程序设计基础(十三)

小编最近在准备python程序设计基础的期末考试,需要总结所学内容的知识点,所以这几次便分享我复习的内容和知识体系。

首先是第一章,python语言概述。在这一章主要掌握两大部分的知识点。

1.了解python语言整体概念。Python是一门跨平台、开源、免费的解释型高级动态编程语言。是一种胶水语言融合不同语言编写的程序。Python支持命令式编程(Howtodo)、函数式编程(Whattodo),完全支持面向对象程序设计,拥有大量扩展库。

2.Python编程规范与代码优化建议。规范体现在代码块对缩进的严格要求。代码优化建议包括模块导入建议、空行的添加、语句的长度、注释、优先级、运行速度。导入模块的建议,其本质也是加快运行速度,导入顺序为Python内置对象,Python标准库,第三方扩展库。

3.其中有一个考点--为导入模块的几种方式。如导入math标准库,其方法有importmath,frommathimportsin,frommathimport*。这三种方法中第二种速度略快,并且可以根据具体情况将sinas为所需要的名称。

4.实例,用三种方法求sin(3).

英文翻译

Theeditoriscurrentlypreparingforthefinalexamofthebasicsofpythonprogramming.IneedtosummarizetheknowledgepointsofthecontentIhavelearned,soIwillsharethecontentandknowledgesystemofmyreviewthesefewtimes.

Firstisthefirstchapter,anoverviewofthepythonlanguage.Inthischapter,twomajorknowledgepointsaremainlymastered.

1.Understandtheoverallconceptofpythonlanguage.Pythonisacross-platform,opensource,free,interpretedhigh-leveldynamicprogramminglanguage.Itisagluelanguagefusionprogramwrittenindifferentlanguages.Pythonsupportsimperativeprogramming(Howtodo),functionalprogramming(Whattodo),fullysupportsobject-orientedprogramming,andhasalargenumberofextendedlibraries.

2.Pythonprogrammingspecificationsandcodeoptimizationsuggestions.Thespecificationisembodiedinthestrictrequirementsforindentationofthecodeblock.Codeoptimizationsuggestionsincludemoduleimportsuggestions,blanklinesaddition,statementlength,

分享 转发
TOP
发新话题 回复该主题