QML 列表,图片展示(一)

文章目录

  • 1.QML 列表,图片展示效果图
  • 2.项目基本说明
  • 3.项目详解
    • 3.1界面显示部分
    • 3.2 网络部分
  • 4.源代码
  • 5.flickr图片查询链接,后面我们将调整代码,获取更多图片

1.QML 列表,图片展示效果图

在这里插入图片描述

2.项目基本说明

  • 该项目来自Qt示例程序 PhotoViewer
  • QML照片查看器,使用XmlListModel和XmlRole下载Flickr提要,使用Package在不同视图中显示照片。
    在这里插入图片描述
  • 使用自定义类型创建屏幕和屏幕控件。
  • 从https://www.flickr.com/拉去网络图片

3.项目详解

3.1界面显示部分

  • 指定初始加载哪些图片标题
    ListModel {id: photosModelListElement { tag: "Flowers" }ListElement { tag: "Wildlife" }ListElement { tag: "Prague" }ListElement { tag: "狗" }}
  • 使用GridView以网格形式布局相册
    GridView {id: albumView; width: parent.width; height: parent.height; cellWidth: 210; cellHeight: 220model: albumVisualModel.parts.album; visible: albumsShade.opacity != 1.0}
  • 随机旋转照片显示的角度
    Item {width: 160; height: 153Item {id: photoWrapperproperty double randomAngle: Math.random() * (2 * 6 + 1) - 6property double randomAngle2: Math.random() * (2 * 6 + 1) - 6x: 0; y: 0; width: 140; height: 133z: stackItem.PathView.z; rotation: photoWrapper.randomAngle
  • 照片边框
 BorderImage {anchors {fill: originalImage.status == Image.Ready ? border : placeHolderleftMargin: -6; topMargin: -6; rightMargin: -8; bottomMargin: -8}source: 'images/box-shadow.png'border.left: 10; border.top: 10; border.right: 10; border.bottom: 10}
  • 在 main.qml 中,我们使用ProgressBar自定义类型来指示全屏打开照片的高质量版本时的进度:
ProgressBar {progress: mainWindow.downloadProgress; width: parent.width; height: 4anchors.bottom: parent.bottom; opacity: mainWindow.imageLoading; visible: opacity != 0.0}

3.2 网络部分

  • RssModel.qml ,使用XmlListModel类型作为数据源Package从选定的源下载照片的对象,tags自定义属性来指定要下载哪些照片。encodeTags自定义函数使用encodeURIComponentJavaScript 方法确保对服务器的请求格式正确。
import QtQuick.XmlListModel 2.0XmlListModel {property string tags : ""function encodeTags(x) { return encodeURIComponent(x.replace(' ',',')); }
  • XmlRole,每个模型项都:title、content、hq
    XmlRole { name: "title"; query: "title/string()" }XmlRole { name: "content"; query: "content/string()" }XmlRole { name: "hq"; query: "link[@rel='enclosure']/@href/string()" }

4.源代码

demos/photoviewer/PhotoViewerCore/AlbumDelegate.qml
demos/photoviewer/PhotoViewerCore/BusyIndicator.qml
demos/photoviewer/PhotoViewerCore/Button.qml
demos/photoviewer/PhotoViewerCore/EditableButton.qml
demos/photoviewer/PhotoViewerCore/PhotoDelegate.qml
demos/photoviewer/PhotoViewerCore/ProgressBar.qml
demos/photoviewer/PhotoViewerCore/RssModel.qml
demos/photoviewer/PhotoViewerCore/Tag.qml
demos/photoviewer/main.cpp
demos/photoviewer/main.qml
demos/photoviewer/photoviewer.pro

5.flickr图片查询链接,后面我们将调整代码,获取更多图片

  • https://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=你的APIKey&extras=title,content,hq&tags=%E7%BE%8E%E5%A5%B3
    这里使用的API KEY需要自行申请!
  • 返回结果
  • 获取具体一张图片
    https://www.flickr.com/photos/34028270@N07/53804519285
<rsp stat="ok">
<photos page="1" pages="3098" perpage="100" total="309720">
<photo id="53804519285" owner="34028270@N07" secret="1092a0d0f5" server="65535" farm="66" title="人像外拍" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53798000815" owner="99002729@N07" secret="b107acf768" server="65535" farm="66" title="DSC_9954" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53797814740" owner="189973723@N07" secret="ec3f77429a" server="65535" farm="66" title="DSC05774 1" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53797795485" owner="189973723@N07" secret="46d22311f4" server="65535" farm="66" title="DSC05795" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53797110211" owner="99002729@N07" secret="99d7b0a4b6" server="65535" farm="66" title="DSC_9943" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53797164390" owner="99002729@N07" secret="cb876a1ec7" server="65535" farm="66" title="DSC_9935" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53796612576" owner="189973723@N07" secret="3634806e6e" server="65535" farm="66" title="DSC05419" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53795661962" owner="189973723@N07" secret="cd376d4211" server="65535" farm="66" title="DSC05460" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53796816598" owner="189973723@N07" secret="30ae1b24bb" server="65535" farm="66" title="DSC05645" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53796794718" owner="189973723@N07" secret="de38d87864" server="65535" farm="66" title="DSC05808" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53796570316" owner="189973723@N07" secret="9a3205b13b" server="65535" farm="66" title="DSC05797" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53796834995" owner="99002729@N07" secret="c172bcd2da" server="65535" farm="66" title="DSC_9930" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53796320114" owner="99002729@N07" secret="fc57b75174" server="65535" farm="66" title="DSC_9914" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53795563689" owner="99002729@N07" secret="3ca2bee176" server="65535" farm="66" title="DSC_9896" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53794896534" owner="99002729@N07" secret="af5940c1e7" server="65535" farm="66" title="DSC_9868" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53794467579" owner="99002729@N07" secret="cb32f339e8" server="65535" farm="66" title="DSC_9861" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53794115953" owner="99002729@N07" secret="5c45513b20" server="65535" farm="66" title="DSC_9857" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53792064147" owner="99002729@N07" secret="9d1bba8620" server="65535" farm="66" title="DSC_9848" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53792847058" owner="99002729@N07" secret="7c52c724f2" server="65535" farm="66" title="DSC_9841" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53792349221" owner="99002729@N07" secret="cf87117a07" server="65535" farm="66" title="DSC_9802" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53792091891" owner="34028270@N07" secret="17a11cfbd4" server="65535" farm="66" title="人像棚拍" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53792400974" owner="34028270@N07" secret="65dfd4ef23" server="65535" farm="66" title="人像棚拍" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53792305858" owner="34028270@N07" secret="fc60d59713" server="65535" farm="66" title="人像棚拍" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53792400999" owner="34028270@N07" secret="4f909f73d3" server="65535" farm="66" title="人像棚拍" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53792305853" owner="34028270@N07" secret="36c6199a4d" server="65535" farm="66" title="人像棚拍" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53792302463" owner="99002729@N07" secret="64365d7dc7" server="65535" farm="66" title="DSC_9791" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53790773447" owner="99002729@N07" secret="be7f6c4d27" server="65535" farm="66" title="DSC_9781" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53791358699" owner="99002729@N07" secret="4434a8f876" server="65535" farm="66" title="DSC_9772" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53790611726" owner="99002729@N07" secret="e80021ba3a" server="65535" farm="66" title="DSC_9759" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53790970540" owner="189973723@N07" secret="2745dbac35" server="65535" farm="66" title="DSC05093" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53790862024" owner="189973723@N07" secret="40b8816fc7" server="65535" farm="66" title="DSC05181" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53790970520" owner="189973723@N07" secret="47e812a44c" server="65535" farm="66" title="DSC05533" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53790766068" owner="189973723@N07" secret="67f670eafe" server="65535" farm="66" title="DSC05326" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53790766033" owner="189973723@N07" secret="f04c30267c" server="65535" farm="66" title="DSC05571" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53790688814" owner="99002729@N07" secret="5ab9c23f9c" server="65535" farm="66" title="DSC_9749" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53790220323" owner="99002729@N07" secret="febe74fa68" server="65535" farm="66" title="DSC_9739" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53790118265" owner="99002729@N07" secret="1bafcdcefd" server="65535" farm="66" title="DSC_9734" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53789236879" owner="99002729@N07" secret="2fbcc97d67" server="65535" farm="66" title="DSC_9719" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53788419296" owner="34028270@N07" secret="8bc7a2bf07" server="65535" farm="66" title="Computex SG" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53788708329" owner="99002729@N07" secret="c1e1a6e078" server="65535" farm="66" title="DSC_9652" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53788301913" owner="99002729@N07" secret="12ebaef048" server="65535" farm="66" title="DSC_9640" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53788167878" owner="189973723@N07" secret="fd8afcdc02" server="65535" farm="66" title="DSC05000" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53788167858" owner="189973723@N07" secret="5cc279a794" server="65535" farm="66" title="DSC05030" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53787954356" owner="189973723@N07" secret="796e8f10dc" server="65535" farm="66" title="DSC05043" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53787954331" owner="189973723@N07" secret="d1065703c0" server="65535" farm="66" title="DSC05037" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53788371390" owner="189973723@N07" secret="91217eab15" server="65535" farm="66" title="DSC05242" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53788268804" owner="189973723@N07" secret="0a15a53ba2" server="65535" farm="66" title="DSC05066" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53787011862" owner="189973723@N07" secret="30ea5f68c8" server="65535" farm="66" title="DSC05103" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53787011807" owner="189973723@N07" secret="ff52d3c48c" server="65535" farm="66" title="DSC05051" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53788081228" owner="99002729@N07" secret="c70a8350ba" server="65535" farm="66" title="DSC_9635" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53787739963" owner="99002729@N07" secret="4de9503d52" server="65535" farm="66" title="DSC_9627" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53784755004" owner="34028270@N07" secret="4011391a08" server="65535" farm="66" title="人像棚拍" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53783485802" owner="34028270@N07" secret="00486abcb6" server="65535" farm="66" title="人像棚拍" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53784848660" owner="34028270@N07" secret="f3afd86db7" server="65535" farm="66" title="人像棚拍" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53781299239" owner="135177936@N03" secret="993a654667" server="65535" farm="66" title="1O0A5429L" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53781401280" owner="135177936@N03" secret="c89b8e3dea" server="65535" farm="66" title="1O0A5414L" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53780045717" owner="135177936@N03" secret="3a04eeae23" server="65535" farm="66" title="1O0A5419L" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53781299194" owner="135177936@N03" secret="c945b90d01" server="65535" farm="66" title="1O0A5413L" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53781299204" owner="135177936@N03" secret="36a1a06025" server="65535" farm="66" title="1O0A5430L" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53781360575" owner="135177936@N03" secret="377d17cb61" server="65535" farm="66" title="1O0A5224L" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53780937361" owner="135177936@N03" secret="4c21f744e0" server="65535" farm="66" title="1O0A5306L" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53780004737" owner="135177936@N03" secret="ea9c2d1a77" server="65535" farm="66" title="1O0A5225L" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53781259124" owner="135177936@N03" secret="9895916582" server="65535" farm="66" title="1O0A5226L" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53781360510" owner="135177936@N03" secret="cd537e30c9" server="65535" farm="66" title="1O0A5231L" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53780004707" owner="135177936@N03" secret="d7c8beea1b" server="65535" farm="66" title="1O0A5235L" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53780004617" owner="135177936@N03" secret="e8fc924522" server="65535" farm="66" title="1O0A5287L" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53781258949" owner="135177936@N03" secret="65d3e733bd" server="65535" farm="66" title="1O0A5304L" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53781360420" owner="135177936@N03" secret="8e12d6ee7c" server="65535" farm="66" title="1O0A5284L" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53780937166" owner="135177936@N03" secret="d99ebd1f9e" server="65535" farm="66" title="1O0A5303L" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53779521258" owner="118906861@N02" secret="d6cd4f1f8c" server="65535" farm="66" title="DSC_3280 拷貝" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53779728620" owner="118906861@N02" secret="88c0bc8743" server="65535" farm="66" title="DSC_3255 拷貝" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53779521243" owner="118906861@N02" secret="c325943ec2" server="65535" farm="66" title="DSC_3261 拷貝" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53779521188" owner="118906861@N02" secret="a24aac187f" server="65535" farm="66" title="DSC_3256 拷貝" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53779521178" owner="118906861@N02" secret="497828314e" server="65535" farm="66" title="DSC_3252 拷貝" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53778380607" owner="118906861@N02" secret="ced022436f" server="65535" farm="66" title="DSC_3182 拷貝" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53778380567" owner="118906861@N02" secret="d6a7ea69bb" server="65535" farm="66" title="DSC_3130 拷貝" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53779521148" owner="118906861@N02" secret="4f4281feaf" server="65535" farm="66" title="DSC_3145 拷貝" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53779631189" owner="118906861@N02" secret="5f4544136c" server="65535" farm="66" title="DSC_3197 拷貝" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53779576919" owner="34028270@N07" secret="62faa661d3" server="65535" farm="66" title="_DSC4643-14" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53779466168" owner="34028270@N07" secret="84cebc5ef0" server="65535" farm="66" title="_DSC4866-1" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53779254471" owner="34028270@N07" secret="0f8dd12e68" server="65535" farm="66" title="_DSC4666-1" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53779466148" owner="34028270@N07" secret="ca3bc39411" server="65535" farm="66" title="_DSC4741-23" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53779466153" owner="34028270@N07" secret="6454e8fc09" server="65535" farm="66" title="_DSC4658-17" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53778346686" owner="128904682@N05" secret="84b957cecf" server="65535" farm="66" title="" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53768637233" owner="99002729@N07" secret="374f27eb18" server="65535" farm="66" title="DSC_8363" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53768513835" owner="99002729@N07" secret="01973afcd3" server="65535" farm="66" title="DSC_8359" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53767885253" owner="99002729@N07" secret="d5158cd90a" server="65535" farm="66" title="DSC_8346" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53767207894" owner="99002729@N07" secret="6ce5c7b186" server="65535" farm="66" title="DSC_8334" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53766321835" owner="128904682@N05" secret="155d15aff1" server="65535" farm="66" title="" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53765908681" owner="128904682@N05" secret="b850c3b830" server="65535" farm="66" title="" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53766100243" owner="128904682@N05" secret="7ea47ac9bb" server="65535" farm="66" title="" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53765908706" owner="128904682@N05" secret="4548bb2251" server="65535" farm="66" title="" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53766321775" owner="128904682@N05" secret="cd4394f3d9" server="65535" farm="66" title="" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53764998487" owner="128904682@N05" secret="7c67463fe1" server="65535" farm="66" title="" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53766228745" owner="99002729@N07" secret="6ab9d56bf1" server="65535" farm="66" title="DSC_8315" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53764425678" owner="99002729@N07" secret="58fb364b61" server="65535" farm="66" title="DSC_8255" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53763929398" owner="99002729@N07" secret="75e1a23c4e" server="65535" farm="66" title="DSC_8251" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53763707284" owner="99002729@N07" secret="bc19843768" server="65535" farm="66" title="DSC_8188" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53763313123" owner="99002729@N07" secret="1040d17b3a" server="65535" farm="66" title="DSC_8179" ispublic="1" isfriend="0" isfamily="0"/>
<photo id="53763110243" owner="34028270@N07" secret="7b8187c37e" server="65535" farm="66" title="人像棚拍" ispublic="1" isfriend="0" isfamily="0"/>
</photos>
</rsp>

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/357949.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

2025秋招NLP算法面试真题(二)-史上最全Transformer面试题:灵魂20问帮你彻底搞定Transformer

简单介绍 之前的20个问题的文章在这里&#xff1a; https://zhuanlan.zhihu.com/p/148656446 其实这20个问题不是让大家背答案&#xff0c;而是为了帮助大家梳理 transformer的相关知识点&#xff0c;所以你注意看会发现我的问题也是有某种顺序的。 本文涉及到的代码可以在…

很冷门但真的有趣的IOS应用

Tuesday Tuesday纪念日小组件是一款功能丰富的倒数日和桌面小组件工具APP。此外&#xff0c;Tuesday软件还具有超萌小清新的风格&#xff0c;界面设计清新可爱&#xff0c;适合各种场景使用。用户可以通过小组件实现各种趣味功能&#xff0c;满足不同心情需求。 SideNotes Si…

3d隐藏模型为什么就不见了?---模大狮模型网

在3D建模和设计过程中&#xff0c;经常会遇到需要隐藏某些模型的情况。然而&#xff0c;有时候隐藏之后再也找不到这些模型了。这种情况可能让人感到困惑和沮丧。本文将探讨3D隐藏模型后“消失”的原因&#xff0c;并提供一些解决方法&#xff0c;帮助您更好地管理和查找隐藏的…

ES 8.14 向量搜索优化

参考&#xff1a;https://blog.csdn.net/UbuntuTouch/article/details/139502650 检索器&#xff08;standard、kNN 和 RRF&#xff09; 检索器&#xff08;retrievers&#xff09;是搜索 API 中的一种新抽象概念&#xff0c;用于描述如何检索一组顶级文档。检索器被设计为可以…

Java基础学习-数组

目录 数组定义 注意点&#xff1a; 地址值是数组在内存中实际存储的地址。 案例遍历&#xff1a;遍历数组得到每一个元素&#xff0c;求数组里面所有数据和 案例&#xff1a;定义数组&#xff0c;遍历能被3整除的数字 案例&#xff1a;遍历一个数组&#xff0c;奇数将当前…

docker搭建mongo分片集群

1、mongo分片集群 MongoDB分片集群是一种可扩展的数据库架构&#xff0c;用于处理大量数据和高并发访问。它将数据分成多个分片&#xff0c;并将这些分片分布在多个服务器上&#xff0c;从而实现数据的平衡存储和并行处理 。 通过使用MongoDB的分片集&#xff0c;可以实现数据…

艺体培训机构管理系统的设计

管理员账户功能包括&#xff1a;系统首页&#xff0c;个人中心&#xff0c;管理员管理&#xff0c;教师管理&#xff0c;学员管理&#xff0c;活动管理&#xff0c;课程管理&#xff0c;选课信息管理 前台账户功能包括&#xff1a;系统首页&#xff0c;个人中心&#xff0c;论…

Spring Boot+vue社区养老系统(智慧养老平台)

使用技术&#xff1a; springbootvueMySQL 主要功能&#xff1a; 管理员 登录个人资料密码管理, 用户管理:床位类型管理,床位管理,护工管理,老人管理 咨询登记管理&#xff0c;预约登记管理,老人健康信 息管理,费用管理等功能.护工角色包含以下功能: 护工登录&#xff0c;个…

数据库精选题(二)(引言+关系代数)

&#x1f308; 个人主页&#xff1a;十二月的猫-CSDN博客 &#x1f525; 系列专栏&#xff1a; &#x1f3c0;数据库 &#x1f4aa;&#x1f3fb; 十二月的寒冬阻挡不了春天的脚步&#xff0c;十二点的黑夜遮蔽不住黎明的曙光 目录 前言 常见概念 一、什么是数据库&#xf…

查找和排序

目录 一、查找 1.1查找的基本概念 1.2顺序查找 1.3折半查找&#xff08;二分查找&#xff09; 1.4散列表的查找 1.4.1基本概念 1.4.2散列函数的构造方法 1.4.3解决冲突的方法 二、排序 2.1排序的基本概念 2.2插入排序 2.2.1直接插入排序&#xff1a; 2.2.2希尔排序…

C++回溯算法(2)

棋盘问题 #include<bits/stdc.h> using namespace std; void func(int,int); bool tf(int,int); void c(); int n,k; char a[110][110]; int cnt20; int main() {cin>>n>>k;for(int i0;i<n;i){for(int j0;j<n;j){cin>>a[i][j];}}func(0,0);cout…

北京BJ90升级新款迈巴赫大连屏四座头等舱行政四座马鞍

北京BJ90升级奔驰迈巴赫头等舱行政四座大联屏的内饰效果会非常出色&#xff0c;将为车辆带来更豪华、高端的内饰氛围。以下是升级后可能的效果&#xff1a; • 科技感提升&#xff1a;奔驰的中控系统一直以来都以其先进的科技和用户友好的界面而闻名。升级后&#xff0c;北京B…

EndNote 21 for Mac v21.3 文献管理软件安装

Mac分享吧 文章目录 效果一、下载软件二、开始安装1、双击运行安装EndNote212、升级 三、运行1、打开软件&#xff0c;测试 安装完成&#xff01;&#xff01;&#xff01;四、注意事项 效果 一、下载软件 下载软件 链接&#xff1a;http://www.macfxb.cn 二、开始安装 1、双击…

深信服科技:2023网络钓鱼趋势分析报告

随着互联网的快速发展和广泛应用&#xff0c;网络钓鱼活动带来的安全隐患愈演愈烈。因应威胁发展&#xff0c;我 们编撰了此份分析报告&#xff0c;旨在全面了解其发展态势&#xff0c;并提醒相关部门、企业和公众加强防范。 在本报告中&#xff0c;我们将详细梳理网络钓鱼的近…

编程精粹—— Microsoft 编写优质无错 C 程序秘诀 07:编码中的假象

这是一本老书&#xff0c;作者 Steve Maguire 在微软工作期间写了这本书&#xff0c;英文版于 1993 年发布。2013 年推出了 20 周年纪念第二版。我们看到的标题是中译版名字&#xff0c;英文版的名字是《Writing Clean Code ─── Microsoft’s Techniques for Developing》&a…

USB - USB在消费领域的应用

Switching in USB Consumer Applications 通用串行总线&#xff08;USB&#xff09;已成为满足终端设备之间日益增长的快速数据传输需求的主流接口--例如&#xff0c;在个人电脑和便携式设备&#xff08;如手机、数码相机和个人媒体播放器&#xff09;之间下载和上传数据。 The…

动手学深度学习(Pytorch版)代码实践 -计算机视觉-37微调

37微调 import os import torch import torchvision from torch import nn import liliPytorch as lp import matplotlib.pyplot as plt from d2l import torch as d2l# 获取数据集 d2l.DATA_HUB[hotdog] (d2l.DATA_URL hotdog.zip,fba480ffa8aa7e0febbb511d181409f899b9baa5…

已解决javax.management.BadStringOperationException异常的正确解决方法,亲测有效!!!

已解决javax.management.BadStringOperationException异常的正确解决方法&#xff0c;亲测有效&#xff01;&#xff01;&#xff01; 目录 问题分析 出现问题的场景 报错原因 解决思路 解决方法 分析错误日志 检查字符串值合法性 确认字符串格式 优化代码逻辑 增加…

pcl::PointXYZRGBA造成点云无法显示

如果pcd文件没有rgba信息&#xff0c;使用pcl::PointXYZRGBA类型打开会提示以下信息&#xff1a; Failed to find match for field rgba另外&#xff0c;显示出来的点云是黑色&#xff0c;如果使用默认背景色为黑色&#xff0c;就无法显示点云了。 如果设置其它背景色&#xf…

多分类情绪识别模型训练及基于ChatGLM4-9B的评论机器人拓展

你的下一个微博罗伯特何必是罗伯特 这是一篇我在使用开源数据集(Twitter Emotion Dataset (kaggle.com))进行情绪识别的分类模型训练及将模型文件介入对话模型进行应用的过程记录。当通过训练得到了可以输入新样本预测的模型文件后&#xff0c;想到了或许可以使用模型文件对新样…