• 2023-12-02p2s学习笔记第四录
    datawhalep2s学习chapter_5与chapter_6chapter_5:循环for循环for循环和循环范围特点基于提供的范围,重复执行特定次数的操作range默认参数range(a,b,c)a为起始值,b为终值+1,c为步长a如果不写,默认为0c不写默认为1for循环嵌套a=5b=5foriinrange(a):
  • 2023-10-25java spring,springmvc,spring boot,spring data,RESTful api设计风格,HTTP协议的四种传参方式,常用注解
    一.基本技术1.Springmvc=手动接电线(配置xml),提供了一种友好的方式来开发Web应用程序。通过使用诸如DispatcherServlet,ModelAndView和ViewResolver,可以轻松开发Web应用程序。2.SpringBoot=标准插座(第3方开源类库想接入,就按照标准做一个starter的适配),实现了免xml配置和提供
  • 2023-10-09笨办法学Python3 习题29 if 语句
    1people=202cats=303dogs=1545ifpeople<cats:6print("Toomanycats!Theworldisdoomed!")78ifpeople>cats:9print("Notmanycats!Theworldissaved!")1011ifpeople<dogs:12p
  • 2023-10-08笨办法学Python3 习题26 恭喜你,现在可以考试了!
    下载代码learnpythonthehardway.org/python3/exercise26.txt进行修改1print("Howoldareyou?",end='')2age=input()3print("Howtallareyou?",end='')4height=input()#没有input()5prin
  • 2023-09-13java spring,springmvc,spring boot,spring data,RESTful api设计风格,HTTP协议的四种传参方式,常用注解
    一.基本技术1.Springmvc=手动接电线(配置xml),提供了一种友好的方式来开发Web应用程序。通过使用诸如DispatcherServlet,ModelAndView和ViewResolver,可以轻松开发Web应用程序。2.SpringBoot=标准插座(第3方开源类库想接入,就按照标准做一个starter的适配),实现了免xml配置和提
  • 2023-09-115.前端设计模式之容器/展现模式
    Enforceseparationofconcernsbyseparatingtheviewfromtheapplicationlogic通过将视图层和应用逻辑分离实现关注点分离 这个有点像Java应用开发中经常看到的MVC架构模式,实现数据、业务逻辑和展示层分离。这个模式在React中需要两个组件实现:容器组件主要负责获取数据,获取
  • 2023-05-16SpringBoot添加JSP支持
    ①创建一个新的MavenWeb项目,命名为SpringBoot_jsptest建成之后会如上图所示,报错是因为没有加入jsp的支持。②按照Maven规范,在src/main/下新建一个名为resource的文件夹,并在下面新建static以及templates文件夹修改pom.xml文件:      1、在url标签后面加入parent元素: <!--
  • 2023-02-04CodeForces 948A
    DescriptionBobisafarmer.Hehasalargepasturewithmanysheep.Recently,hehaslostsomeofthemduetowolfattacks.Hethusdecidedtoplacesomeshephe
  • 2023-02-03POJ2761 Feed the dogs(Treap)
    DescriptionWindlovesprettydogsverymuch,andshehasnpetdogs.SoJiajiahastofeedthedogseverydayforWind.JiajialovesWind,butnotthedogs,
  • 2022-12-27Python中的Counter
    Counter的用处提供一种简洁的计数方法。Counter的ImportfromcollectionsimportCounterCollections是一个集成了List、Dict、Purple、Set的拓展和替代品的模块。
  • 2022-10-08【笨方法学python】ex29 - 如果(if)
    代码如下:点击查看代码people=20cats=30dogs=15ifpeople<cats:print"Toomanycats!Theworldisdoomed!"ifpeople>cats:print"Notman
  • 2022-08-14MathProblem 29 Four dogs and a square problem
    Fourdogsoccupythefourcornersofasquarewithsideoflengtha.Atthesametimeeachdogstartswalkingatthesamespeeddirectlytowardthedogonhis