![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
沙雅云
这个作者很懒,什么都没留下…
展开
-
Django学习笔记2-HTML的相关知识
一个HTML页面基本组成元素<<!doctype html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">原创 2021-12-22 17:27:58 · 678 阅读 · 0 评论 -
Django学习笔记1---django简介与hello world
Django简介Django框架的介绍Django是一个高级的Python Web框架,它鼓励快速开发和清洁,务实的设计。由经验丰富的开发人员构建,它负责Web开发的许多麻烦,因此您可以专注于编写应用程序,而无需重新创建轮子。它是免费的和开源的。被官方称之为完美主义者的Web框架。Django可以更快地构建更好的Web应用程序并减少代码。官方网址:https://www.djangoproject.com/Django框架的特点快速开发:Django的宗旨在于帮助开发人员快速从概念原创 2021-12-22 16:55:03 · 587 阅读 · 0 评论 -
python学习 day3-元组、列表、字典、numpy基本操作
元组a={2}#setb=(2,)#元组print(a)print(b)---------------------{2}(2,)列表arr=[1,True,"hello"]print(arr)arr.append("world")print(arr[1:3])--------------[1, True, 'hello'][True, 'hello']不可变对象#不可变对象 int float,str,bool,tuple,改变值以后,地址就变了a=3print(a原创 2021-09-27 16:50:43 · 138 阅读 · 0 评论 -
python学习-day2--numpy
做类型转换,调用math包import maths='34.5'print(int(float(s)))print(math.ceil(float(s)))print(math.floor(float(s)))----------------------343534list的切片工具ls=[1,2,3,"sss",4,6,"hello,world"]print(ls[::-1])print(ls[::3])print(ls[2:4:1])-------------------原创 2021-09-24 15:25:12 · 53 阅读 · 0 评论 -
python学习 -day 1python基础知识讲解
1,打印变量的类型,是一种动态的变量,变量的类型是可以任意更改的。price=1print(type(price))2,变量命名的规则:英文单词+下划线+数字3、int,str=''2'' '2' ''''''2'''''' '''2'''4,从文件读出来的数据,往往都是字符串类型,需要强制类型转换。s='23's=int(s)print(type(s))#此时就是int类型了5,分隔符分割字符串s="1,2,3,4,5"data=s.split(",")print(data原创 2021-09-23 17:22:29 · 102 阅读 · 0 评论 -
将多个文件夹下的文件放在一个文件下下
将多个文件夹下的文件放在一个文件下下## 标题import osimport shutildef copyfile(filepath,newpath):#获取当前文件下的文件名filenames=os.listdir(filepath)for file in filenames:newdir=filepath+’/’+fileif os.path.isfile(newdir):#...原创 2020-03-28 18:41:48 · 280 阅读 · 0 评论