【MOOC嵩天Python语言程序设计】5.5 实例8:科赫雪花小包裹

Python语言程序设计(北京理工大学)第三周_Python Programming week03 实例3:天天向上的力量 描述 这是"实例"题,与课上讲解实例相同,请作答检验学习效果。‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬ 工作日模式要努力到什么水平,才能与每天努力1%一样?‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪... 阅读详情
# KochDrawV1.py
import turtle
def koch(size, n):
    if n == 0:
        turtle.fd(size)
    else:
        for angle in [0, 60, -120, 60]:
            turtle.left(angle)
            koch(size / 3, n - 1)
def main():
    turtle.setup(800, 400)
    turtle.penup()
    turtle.goto(-300, -50)
    turtle.pendown()
    turtle.pensize(2)
    koch(600, 3)  # 0阶科赫曲线长度,阶数
    turtle.hideturtle()
    turtle.done()
main()

在这里插入图片描述

# KochDrawV2.py
# KochDrawV2.py
import turtle
def koch(size, n):
    if n == 0:
        turtle.fd(size)
    else:
        for angle in [0, 60, -120, 60]:
            turtle.left(angle)
            koch(size / 3, n - 1)
def main():
    turtle.setup(600, 600)
    turtle.penup()
    turtle.goto(-200, 100)
    turtle.pendown()
    turtle.pensize(2)
    level = 3  # 3阶科赫雪花,阶数
    koch(400, level)
    turtle.right(120)
    koch(400, level)
    turtle.right(120)
    koch(400, level)
    turtle.hideturtle()
    turtle.done()
main()

在这里插入图片描述

中国大学MOOC《Python语言程序设计》第5周测试练习题 答案 中国大学MOOC《Python语言程序设计》 学习记录 第4周练习题1 七段数码管绘制第4周练习题2 科赫雪花小包裹第4周练习题3 任意累积第4周练习题4 斐波那契数列计算第4周练习题5 汉诺塔实践 第4周练习题1 七段数码管绘制 描述 这是"实例"题7,与课上讲解实例相同,请作答检验学习效果。‪‬‪‬‪‬‪‬‪‬‮‬‪‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪... 阅读详情

相关推荐

python语言程序设计(MOOC 嵩天)第五章 程序整理(0219)

第五章 程序整理 练习1 七段数码管绘制 import turtle as t import time def drawGap(): #绘制数码管间隔 t.penup() t.fd(5) def drawLine(draw): #绘制单段数码管 drawGap() t.pendown() if draw else t.penup() t.fd(40) ...

yq1271的博客 1451

Python实现 科赫雪花小包裹(嵩天老师)

实例8:科赫雪花小包裹

m0_61903191的博客 4070

MOOC《Python语言程序设计》第6周练习题

这周讲解了组合数据类型,重点介绍表达和处理一组数据的方法,涉及到多种数据类型,包括:集合类型、序列类型(含元组类型和列表类型)和字典类型;讲解2个颇有用处的实例:基本统计值计算和文本词频统计,其中,即有英文Hamlet的词频统计,也有中文《三国演义》的人物出场统计;进一步讲解用于中文分词的jieba库,从此以后,处理中英文文本、做些统计分析将不再是问题! 练习1:基本统计值的计算(也就是课程中的实例9:基本统计值计算) 描述: 获取以逗号分隔的多个数据输入(输入为一行),计算基本统计值(平均值、标准差、中位数)‪‬‪‬‪‬‪‬‪‬‮‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‪‬‪‬

Python语言程序设计(嵩天老师版)第四周代码解析——程序的控制

一、身体质量指数BMI 这是"实例"题,与课上讲解实例相同,请作答检验学习效果。‪‬‪‬‪‬‪‬‪‬‮‬‫‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‮‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬ BMI :

Chengxuyuan0307的博客 1287

多GPU时代的虚拟内存革命:CUDA VMM API的跨设备协同设计哲学

本文深入探讨了NVIDIA CUDA VMM API在多GPU系统中的虚拟内存管理革命,解决了传统Peer Access的显存碎片化和同步开销问题。通过地址-内存解耦、按需映射和精细权限控制,VMM API为分布式训练提供了高效的内存协同方案,显著提升大模型训练性能。

weixin_29251337的博客 534

Claude Code 的 Subagent 到底怎么用?

Subagent是ClaudeCode中的专业化AI代理系统,每个代理专注单一领域(如代码审查、数据库设计),具备独立记忆空间和并行处理能力。适用于中大型项目开发,通过配置文件定义代理职责与权限,可显式调用或自动触发多代理协作。典型场景包括代码安全审查、全栈并行开发和技术方案对比。使用时需注意避免过度拆分、权限过宽等陷阱,结合链式工作流和负载均衡可显著提升效率。实测在电商项目开发中能缩短20%工期并提升40%性能。

bgeyq的博客 1992

Python笔记 :科赫雪花曲线(计算思维训练1)

提要:基于MOOC的“Python语言程序设计基础”,主讲人:嵩天。基本算是课本笔记。 科赫雪花曲线设计思路 一、三种人类思维特征 逻辑思维:推理和演绎,数学为代表; 实证思维:实验和验证,物理为代表; 计算思维:设计和构造,计算机为代表; 二、计算思维的概念 概念诞生:2006年,时任美国卡内基-梅隆大学计算机系主任的周以真(Jeannette M. Wing)教授,提出了计算思维(...

htuhxf的博客 1万+

LDRA Testbed(TBrun)软件单元测试_实例讲解(对多次调用的函数打桩)

在之前的文章《LDRA Testbed(TBrun)软件单元测试_操作指南》中,已经讲解了如何使用TBrun进行软件单元测试的基本操作步骤。本篇文章将结合实例进一步讲解被测函数中包含多次调用其他函数时,如何对其打桩来实现测试目的(详细的操作流程本文不再重述,若有不清楚的,可以结合之前的操作指南一起来看)。本文以一个被测函数作为示例,讲解了如何使用Testbed(TBrun)对涉及到多次调用其他函数的被测函数进行单元测试。本文的示例可能比较简单,但是思路、方法和流程都是通用的,希望对大家有所帮助。

文章主要涉及嵌入式软件开发、测试、项目管理等,欢迎交流,共同进步。 1462

python 变量名 递增_Python学习笔记 | 实例1: 温度转换

本文为中国大学MOOC《Python语言程序设计》课程学习笔记,课程主讲:嵩天老师,练习平台:Python123一、题目描述这是"实例"题,与课上讲解实例相同,请作答检验学习效果。‪‬‪‬‪‬‪‬‪‬‮‬‪‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‪‬温度的刻画有两个不同体系:摄...

weixin_34285757的博客 1104

【Linux0.11代码分析】之 系列文章链接汇总(全)

【Linux0.11代码分析】00 之 系列文章链接汇总(全)

|~~~热爱生活、努力学习的小伙汁~~~| 1449

基于Simulink的电力电子负载特性模拟仿真实例

电阻性负载是最简单的负载形式,其阻抗为纯电阻,电流和电压之间的关系符合欧姆定律。电阻性负载的特点是消耗能量,不会存储能量。本示例将以一个典型的直流电源供电系统为例,展示如何利用Simulink进行不同负载特性的仿真模拟。直流电源:提供固定电压输入。逆变器(可选):根据需要产生PWM调制信号,驱动负载。负载模块:模拟不同类型的负载特性,如电阻性负载、电感性负载和容性负载。测量模块:用于观察负载上的电压和电流波形。系统架构视图plaintext深色版本v| || |

xiaoheshang_123的博客 429

Python语言程序设计(MOOC崇天)第五章函数和代码复用学习笔记(七段数码管绘制+科赫雪花小包裹)

复习: 今日内容: 函数的定义与使用: 函数的使用及调用过程 参数传递的两种方式: 局部变量和全局变量 如果在函数内部真实创建呢? 组合数据类型是指针来体现的,如果函数中没有真实的创建组合数据类型,它使用的变量是指针,而指针指向的是外部的全局变量。 总...

qq_37791134的博客 1614

2023华为OD面试手撕真题【最长公共前缀】

2023华为OD面试手撕真题【最长公共前缀】

MISAYAONE的博客 5239

MOOC《Python语言程序设计》(第15次)函数和代码复用(第五周)

MOOC《Python语言程序设计》(第15次) 函数和代码复用(第五周)21.7.29 文章目录MOOC《Python语言程序设计》(第15次)函数和代码复用(第五周)21.7.29练习题单项选择题程序设计题学习笔记1、函数的定义和使用1.1函数的理解和定义1.2函数的使用及调用过程1.3函数的参数传递1.4函数的返回值1.5 局部变量和全局变量1.6 lambda函数2、实例7:七段数码管的绘制3、代码复用与函数递归3.1代码复用与模块化设计3.2函数递归的理解3.3函数递归的调用过程3.4函数递归实例

小朱.小猪的博客 429

第3版•系统集成项目管理工程师(中级) │ 第6章 数据工程

🥏第3版•系统集成项目管理工程师(中级) │ 第6章 数据工程

✨ 欢迎来到【Seal ^_^ 的优快云博客】!✨ 1万+

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain&#39;s apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath(&#39;DeepLearnToolbox&#39;));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand(&#39;state&#39;,0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W&#39;); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand(&#39;state&#39;,0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = &#39;sigm&#39;;%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, &#39;Too big error&#39;);```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand(&#39;state&#39;,0)sae = saesetup([784 100]);sae.ae{1}.activation_function = &#39;sigm&#39;;sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)&#39;)% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = &#39;sigm&#39;;nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, &#39;Too big error&#39;);```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x&#39;,28,28,60000))/255;test_x = double(reshape(test_x&#39;,28,28,10000))/255;train_y = double(train_y&#39;);test_y = double(test_y&#39;);%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you&#39;ll get around 1.2% errorrand(&#39;state&#39;,0)cnn.layers = { struct(&#39;type&#39;, &#39;i&#39;) %input layer struct(&#39;type&#39;, &#39;c&#39;, &#39;outputmaps&#39;, 6, &#39;kernelsize&#39;, 5) %convolution layer struct(&#39;type&#39;, &#39;s&#39;, &#39;scale&#39;, 2) %sub sampling layer struct(&#39;type&#39;, &#39;c&#39;, &#39;outputmaps&#39;, 12, &#39;kernelsize&#39;, 5) %convolution layer struct(&#39;type&#39;, &#39;s&#39;, &#39;scale&#39;, 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, &#39;Too big error&#39;);```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand(&#39;state&#39;,0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, &#39;Too big error&#39;);%% ex2 neural net with L2 weight decayrand(&#39;state&#39;,0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);%% ex3 neural net with dropoutrand(&#39;state&#39;,0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);%% ex4 neural net with sigmoid activation functionrand(&#39;state&#39;,0)nn = nnsetup([784 100 10]);nn.activation_function = &#39;sigm&#39;; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);%% ex5 plotting functionalityrand(&#39;state&#39;,0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = &#39;softmax&#39;; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand(&#39;state&#39;,0)nn = nnsetup([784 20 10]); nn.output = &#39;softmax&#39;; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Python函数章笔记--嵩天老师慕课版

函数函数的定义与使用函数的理解与定义函数的使用及调用过程函数的参数传递函数的返回值局部变量和全局变量规则1规则2局部变量和全局变量的使用规则lambda函数七段数码管绘制代码复用与函数递归代码复用与模块化设计函数递归的理解PyInstaller库的使用科赫雪花小包裹cmd的基本操作: 函数的定义与使用 定义代码不被执行,调用时通过给定实际参数替换定义中的形式参数获得运算结果 函数的理解与定义 函...

远方的博客 777

jre9下载 jdk9

(Java SE Runtime Environment 9.0) 9.0u175 官方最新版 【x86|x64】

Python语言程序设计课程大纲

本节学习目标:掌握函数的基本使用方法,理解并掌握递归使用,掌握PyInstaller库,能够编写带有函数的程序,并能够打包可执行文件。本节学习目标:掌握文件的使用方法,理解一二维数据,掌握wordcloud库,能够处理包含一二维数据的文件,能够用程序绘制词云。本节学习目标:理解Python程序设计思维,掌握扩展Python编程的基本方法,掌握os库,能够安装Python第三方库。本节学习目标:掌握组合数据类型(集合、元组、列表、字典)的使用方法,掌握jieba库,能够处理一组数据,并处理中文文本。

江夏的博客 497

Statistics and Machine Learning Toolbox

Statistics and Machine Learning Toolbox(带书签),MATLAB统计学习工具

老版QQ原生表情gif动态

这是老版的QQ表情,不过全是动态的的,Windows照片查看器是不会动的,可以右击用浏览器打开查看,再说一遍是老版的,只是分享给宁愿用老版也要动态的人。

MOOC课程python语言程序设计——5 函数和代码复用

5.1函数的定义与使用 1.函数是一段代码的表示 特定功能的、可重用的语句组 两个作用:降低编码难度+代码复用 def <函数名>(<参数0个或多个>): <函数体> return <返回值> 函数是一种IPO的实现(输入-处理-输出) 调用是运行函数代码的方式 2.函数的参数 ①可以有参数,也可以没有,但别必须保留括号 ②可选参数:某些参数指定默认值,且可选参数要放在非可选参数后面,如下:(就是某些参数是函数内部设定了的,

dkkfff的博客 310

python语言程序设计_北理MOOC视频笔记

文章目录(一)python快速入门Week1 _基本语法元素Week2_画图(二)python基础语法Week3_基本数据类型Week4_程序的控制结构Week5_函数和代码复用Week6_组合数据类型Week7_文件和数据类型的格式化(三)python编程思维Week8_程序设计方法学Week9_python计算生态纵览 (一)python快速入门 Week1 _基本语法元素 1.1_程序设计基...

kk_land的博客 712

《Python语言程序设计》课程笔记系列

Part1Python语言程序设计 本笔记主要参考中国大学MOOC北京理工大学嵩天教授开设的《Python语言程序设计》课程。 课程链接:https://www.icourse163.org/course/BIT-268001 Python语言程序设计 第一章 Python基本语法元素 1.1 程序设计基本方法 1.2 Python开发环境配置 1.3 实例1: 温度转换 Python程序语法元素分析 第.

Jack, what else can you do besides holding your little darling? 2075

python MOOC-1函数

#每日一记-1 函数和代码 ##函数定义和使用 ###1.定义:函数可以理解为:IPO的实现和一代完整代码封装。 ###2.调用:实际参数替换函数中的形式参数。定义不执行,调用才执行。 ###3.参数传递 参数传递指的是在函数调用的时候,怎么将实际的值给定到参数上。可以按照位置或明称方式传递。 !可选参数必须放在非可选参数之后。 ###3.返回值 元组类型:(,) 列表类型: [,] ###4.局部变量和全局变量 局部变量是函数内部变量。 ###5.lambda函数 ###

S_Mingchuan的博客 300

[实例]_python语言程序设计_北理MOOC视频笔记

文章目录#1马克 #1 case_1 温度转换 case_2 画蟒蛇 马克 常见的python报错及解决方案 Print如何在输出中插入变量 Python绘图Turtle库详解

kk_land的博客 282

中国大学MOOCPython语言程序设计(北京理工大学)第5-6周学习笔记和课后练习

中国大学MOOCPython语言程序设计(北京理工大学)第5-6周学习笔记和课后练习第5周 函数与代码复用第6周 组合数据类型6.1 集合类型及操作6.2 序列类型及操作6.3 实例9: 基本统计值计算6.4 字典类型及操作6.5 模块5: jieba库的使用6.6 实例10: 文本词频统计6.7 课后练习单元测试程序题1.数字不同数之和2.人名最多数统计 第5周 函数与代码复用 第6周 组合数据类型 6.1 集合类型及操作 集合使用{}和set()函数创建 集合间操作:交(&)、并(|)、差(-)

python学习提升 1525

Python语言程序设计-全课程总结与学习展望

Python基础语法(全体系) 1.基本数据类型 基本数据类型 2.程序的控制结构 分支结构与异常处理 循环结构:遍历循环、无限循环 3.函数和代码复用 函数的定义和使用 函数递归 4.组合数据类型 集合类型 序列类型:元组和列表 字典类型 5.文件和数据格式化 文件的使用 一维数据的格式化和处理 二维数据的格式化和处理 Python计算生态(详解7个) 1.turtle...

小程博客 5892

【Python语言程序设计】Python实例1-8、turtle库、time库、random库、PyInstaller库

【Python语言程序设计】Python实例1-8、turtle库、time库、random库、PyInstaller库 PS:MOOC同名课程,学习笔记整理。如侵则删。

Anilina的博客 462
上一篇: 【MOOC嵩天Python语言程序设计】5.2 实例7:七段数码管绘制
下一篇: 【MOOC嵩天Python语言程序设计】5.3 代码复用与函数递归
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值