[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-671793-105":3,"detail-sidebar-cat-0-en-105":79,"doc-detail-671793-en":129},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":72,"head_meta":74,"extra_data":76,"updated_unix":78},105,"en","python-introduction-to-the-basics","PYTHON - Introduction to the Basics","","Python的基础概念与入门路线梳理，涵盖数据类型I/II、控制语句、函数、输入/输出、错误与异常，以及面向对象编程、模块与包与进阶技术。内容进一步解释为何选择Python：动态语言、简洁可读、面向多范式、平台无关与标准库完善，并介绍生态社区与通过C/C++扩展性能的思路。还包含Python发展历程、Zen of Python设计原则与运行示例（Hello World/Hello User）。",{"@graph":14,"@context":71},[15,34,54],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/python-introduction-to-the-basics/671793/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":48,"encodingFormat":47,"isAccessibleForFree":49,"interactionStatistic":50},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/python-introduction-to-the-basics/671793.png","ImageObject",300,407,{"name":42,"@type":43},"Jasmine","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-02",true,{"@type":51,"interactionType":52,"userInteractionCount":26},"InteractionCounter",{"@type":53},"ViewAction",{"@type":55,"mainEntity":56},"FAQPage",[57,63,67],{"name":58,"@type":59,"acceptedAnswer":60},"这份材料主要涵盖哪些Python基础主题？","Question",{"text":61,"@type":62},"涵盖数据类型（I与II）、控制语句、函数、输入/输出、错误与异常，以及面向对象编程、模块与包和进阶技术。","Answer",{"name":64,"@type":59,"acceptedAnswer":65},"为什么选择Python？",{"text":66,"@type":62},"材料强调其多用途、语法清晰易读、支持多种编程范式、模块化层次结构完善、标准库覆盖广、社区庞大，并可通过C/C++扩展以提升性能。",{"name":68,"@type":59,"acceptedAnswer":69},"文中如何说明Python的运行与性能问题？",{"text":70,"@type":62},"材料指出用户程序通常足够快，很多部分由C实现；对于计算密集型算法可能更适合Fortran/C/C++，并建议先分析再优化。","https://schema.org",{"og:url":32,"og:type":73,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":75,"canonical":32},"index,follow",{"doc_id":77,"site_id":7},671793,1793580647,{"code":4,"msg":80,"data":81},"success",[82,86,90,94,99,103,108,113,118,121,125],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":83,"show_sort_weight":84,"slug":85},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":87,"show_sort_weight":88,"slug":89},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":91,"show_sort_weight":92,"slug":93},"Exam",70,"exam",{"id":95,"doc_module":4,"doc_module_name":25,"category_name":96,"show_sort_weight":97,"slug":98},5,"Comic",60,"comic",{"id":100,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":101,"slug":102},6,50,"technology",{"id":104,"doc_module":4,"doc_module_name":25,"category_name":105,"show_sort_weight":106,"slug":107},7,"Healthcare",40,"healthcare",{"id":109,"doc_module":4,"doc_module_name":25,"category_name":110,"show_sort_weight":111,"slug":112},8,"Research & Report",30,"research-report",{"id":114,"doc_module":4,"doc_module_name":25,"category_name":115,"show_sort_weight":116,"slug":117},9,"Religion & Spirituality",20,"religion-spirituality",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":119,"show_sort_weight":116,"slug":120},"World Cup","world-cup",{"id":122,"doc_module":4,"doc_module_name":25,"category_name":123,"show_sort_weight":122,"slug":124},10,"Lifestyle","lifestyle",{"id":126,"doc_module":4,"doc_module_name":25,"category_name":127,"show_sort_weight":95,"slug":128},19,"General","general",{"code":4,"msg":80,"data":130},{"doc_id":77,"user_id":131,"nickname":42,"user_avatar":132,"doc_module":4,"category_id":100,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":133,"file_id":134,"file_url":135,"file_type":136,"file_size":137,"view_count":26,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":138,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":78,"read_time":143},2336478487870,"https://ap-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45","PYTHON  \nIntroduction to the Basics  \nOctober 2022  S. Linner, M. Lischewski, M. Richerzhagen  Forschungszentrum Jülich  \nMember of the Helmholtz Association  \nTable of Contents  \nIntroduction  \nData Types I  \nControl Statements Functions  \nInput/Output  \nErrors and Exceptions  \nData Types II  \nObject Oriented Programming Modules and Packages Advanced Techniques  \nTools  \nRegular Expressions (optional) Summary and Outlook  \nMember of the Helmholtz Association  \nSlide 1  \nTable of Contents  \nIntroduction  \nData Types I  \nControl Statements Functions  \nInput/Output  \nErrors and Exceptions  \nData Types II  \nObject Oriented Programming Modules and Packages Advanced Techniques  \nTools  \nRegular Expressions (optional) Summary and Outlook  \nMember of the Helmholtz Association  \nSlide 2  \nWhat is Python?  \nPython: Dynamic programming language which supports several different programing paradigms:  \n Procedural programming  \n Object oriented programming  \n Functional programming  \nStandard: Python byte code is executed in the Python interpreter (similar to Java)→ platform independent code  \nMember of the Helmholtz Association  \nSlide 3  \nWhy Python?  \n Extremly versatile language  \n Website development, data analysis, server maintenance, numerical analysis, ...  \n Syntax is clear, easy to read and learn (almost pseudo code)  \n Common language  \n Intuitive object oriented programming  \n Full modularity, hierarchical packages  \n Comprehensive standard library for many tasks  \n Big community  \n Simply extendable via C/C++, wrapping of C/C++ libraries  \n Focus: Programming speed  \nMember of the Helmholtz Association  \nSlide 4  \nHistory  \n Start implementation in December 1989 by Guido van Rossum (CWI)  \n 16.10.2000: Python 2.0  \n Unicode support  \n Garbage collector  \n Development process more community oriented  \n 3.12.2008: Python 3.0  \n Not 100% backwards compatible  \n most popular programming language (TIOBE Index)  \n Recommendation for scientific programming (Nature News, NPG, 2015)  \n Current version: Python 3.10.8  \n Python2 is out of support since 2020! 1  \n1 [https://python3statement.org/](https://python3statement.org/)  \nMember of the Helmholtz Association  \nSlide 5  \nZen of Python  \n 20 software principles that influence the design of Python:  \n 1 Beautiful is better than ugly.  \n 2 Explicit is better than implicit.  \n 3 Simple is better than complex.  \n 4 Complex is better than complicated.  \n 5 Flat is better than nested.  \n 6 Sparse is better than dense.  \n 7 Readability counts.  \n 8 Special cases aren’t special enough to break the rules.  \n 9  Although practicality beats purity.  \n10 Errors should never pass silently.  \n11 Unless explicitly silenced.  \n12 ...  \nMember of the Helmholtz Association  \nSlide 6  \nIs Python fast enough?  \n For user programs: Python is fast enough!  \n Most parts of Python are written in C  \n For compute intensive algorithms: Fortran, C, C++ might be better  \n Performance-critical parts can be re-implemented in C/C++ if necessary  \n First analyse, then optimise!  \nMember of the Helmholtz Association  \nSlide 7  \nHello World!  \n[hello_world.py](hello_world.py)  \n\\# !/ us r / bin / env python3  \n\\# This is a commentary print ( \" Hello world ! \" )  \n$ python3 hello_world . py Hello world !  \n$  \n$ chmod 755 [hello_world . py](hello_world . py)  \n$ ./[hello_world . py](hello_world . py)[ ](hello_world . py)Hello world !  \n$  \nMember of the Helmholtz Association  \nSlide 8  \nHello User  \n[hello_user.py](hello_user.py)  \n\\# !/ us r / bin / env python3  \nname = input ( \" What ’s your name? \" )  \nprint ( \" Hello \" , name )  \n$ ./[hello_user . py](hello_user . py)  \nWhat ’s your name? Rebecca Hello Rebecca  \n$  \nMember of the Helmholtz Association  \nSlide 9","cbCairaUHFbcO87w","https://ap.wps.com/l/cbCairaUHFbcO87w","pdf",1531734,192,"English","# Introduction\n# Data Types I\n# Control Statements Functions\n# Input/Output\n# Errors and Exceptions\n# Data Types II\n# Object Oriented Programming\n# Modules and Packages\n# Advanced Techniques\n# Tools\n# Regular Expressions (optional)\n# Summary and Outlook","[{\"question\":\"这份材料主要涵盖哪些Python基础主题？\",\"answer\":\"涵盖数据类型（I与II）、控制语句、函数、输入/输出、错误与异常，以及面向对象编程、模块与包和进阶技术。\"},{\"question\":\"为什么选择Python？\",\"answer\":\"材料强调其多用途、语法清晰易读、支持多种编程范式、模块化层次结构完善、标准库覆盖广、社区庞大，并可通过C/C++扩展以提升性能。\"},{\"question\":\"文中如何说明Python的运行与性能问题？\",\"answer\":\"材料指出用户程序通常足够快，很多部分由C实现；对于计算密集型算法可能更适合Fortran/C/C++，并建议先分析再优化。\"}]","PYTHON - Introduction to the Basics | PDF",484]