自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 啊啊啊

xarr=[]yarr=[]import mathfrom tkinter import *import matplotlib.pyplot as pltimport randomimport numpy as npdef close():gui.destroy()gui=Tk()gui.minsize(700,500)gui[‘bg’]=‘pink’lab_a=Label(gui,text='a: ')lab_b=Label(gui,text='b: ')lab_c=...

2021-05-28 17:31:33 65

原创 太不容易了

import math from tkinter import *import matplotlib.pyplot as pltimport randomimport numpy as npHallo=Tk()Hallo.minsize(700,700)Hallo['bg']='lightblue'lab_a=Label(Hallo,text="ParameterA")lab_b=Label(Hallo,text="ParameterB")lab_c=Label(Hallo,text

2021-05-28 04:49:16 66

原创 统计

“”"a=[1,2,5,7,6,3]Mittelwert (1+2+5+7+6+3)/6 # arithmetisch 算术平均(12576*3)^(1/6) # geometrisch 几何平均harmonischMediam [1,2,3,5,6,7] 中位数:mittlere Element eines sortierten Liste, wenn Anzahl ungeradeMittelwert des mittlere Elemente, wenn Anzahl

2021-05-28 03:25:59 311

原创 用 Monte Carlo算pi

#Berechnung von pi mit Monte Carlo#Visualisierung mit turtleimport randomfrom turtle import Turtlepoints=int(input('number of points: '))#Zeichenflaeche erstellentt=Turtle() #tt只是一个变量的名字tt.hideturtle()tt.speed(0)Quadrat zeichnen‘’'turtle..

2021-05-28 02:45:30 313

原创 充电和放电(比较经典的

#Ladekurve für Kondensatorimport mathimport matplotlib.pyplot as pltfrom tkinter import *“”"Uc=U*(1-exp(-t/(R*C)))U-SpannungR-WiderstandC-Kapazität“”"def close():gui.destroy()gui=Tk()gui.minsize(700,600)gui['bg']='lightblue'lab_spannung=L

2021-05-28 02:36:42 107

原创 Turtle画图

Beispiel: Dreiecke zeichnen und drehenimport turtle zfl=turtle.Turtle()zfl.setheading(0)w=120.0for i in range(0,360,30):if i%60: zfl.color('lightblue')else: zfl.color('orange')zfl.setheading(i)zfl.goto(0,0)zfl.forward(200)zfl.left(w)zf

2021-05-28 02:31:58 94

原创 Sylronika自用

电子轨道图像很重要xarr=[]yarr=[]from tkinter import * import matplotlib.pyplot as pltgui=Tk(className='Flugbahn eines Elektrons')gui.minsize(700,500)gui['bg']='lightgreen'lab_spannung=Label(gui, text='Spannung: ', bg='lightgreen')lab_platte=Label(gui,

2021-05-24 23:14:10 83

原创 Sylronika自用

Tkinter的应用from tkinter import * gui=Tk()gui['bg']='Lightblue'gui.minsize(600,600)def beenden(): gui.destroy()def lesen(): inhalt=input1.get() label2['text']='Die Eingabe ist '+inhaltscreen_w=gui.winfo_screenwidth()screen_h=g

2021-05-24 22:51:08 49

原创 Sylronika自用

Berechnung von pi mit der Monte Karlo Methodeimport randompoints=int(input('Anzahl der Wuerfe: '))in_circle=out_circle=0for i in range(points): x=random.randrange(-100,100) y=random.randrange(-100,100) if (x*x+y*y>10000): ou

2021-05-24 22:12:58 40

原创 Sylronika自用

Module的例子算三角形面积和周长以及表面积和体积Klasse ‘Student’class student:def init(self,name,land,fach,alter):self.name=nameself.land=landself.fach=fachself.alter=alterdef einstudent(self): print('Name: '+self.name+'\nLand: '+self.land+'\nFach: '+self.fach+'

2021-05-24 21:37:26 54

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除