致命错误:Python.h:没有那个文件或目录
解决办法:
c++学习记录
解决办法:
安装包来自Teddysun,特感谢之,有问题可以访问https://teddysun.com。 1.安装过程 Debian 版本安装 Centos 版本安装 安装完成之后,会出现如下提示,显示着你的帐号密码,请记好: Your Server IP:your_server_ip //你的服务器IP Your Server Port:your_server_port //你的shadowsocks服务器端口 Your Password:your_password //你的shadowsocks帐号密码 Your Local IP:127.0.0.1 Your Local Port:1080 You…
一直提示 包名不对,请检查包名是否与开放平台填写一致 修改过包名和签名后,还是一直这个提示, 最后发现 微信 会缓存包信息、或者appid等信息,若第一次没有调起登录,要去清除微信的缓存信息(非聊天信息),然后确认包名和签名和微信平台一致,就可以调起微信登录了。若不知道如何清除微信缓存,直接重装微信app就可以了
今天使用flutter遇到了这个问题: 解决办法: 删除 flutter/.pub-cache 文件夹 然后运行 flutter packages get 就可以了
我是一个资深技术宅,从高一的时候被学校开除,只身一人来到郑州 投奔我师傅! 到现在已经过去6年了,现在回想起来真是时间匆匆弹指一挥间! 最开始运营了一个源码论坛,当时是13年 我年纪比较小对金钱没有太大的兴趣,只想有一个自己的网站 每天都是 搜集源码 测试源码 发布源码 然后去各大论坛发广告 ,这种状态一直持续了一年半(这一年半的时间里没有一毛钱收入)。转折发生在14年中 我的网站百度权重达到4了 每天都有上千人访问,给我也带来了不小的一笔收益。网站一直维持到17年底 累计给我创造了170多万的收入。 然后开始踏上了创业之旅 未完待续 写字太费时间 明天更新
看了妇联4后 突发奇想,准备开发一个 灭霸无限手套 app 运行此app 就随机删除手机内 一半的照片 和联系人
前天晚上我的合伙人打电话和我确认 他要退出的事情 正式迎来了我的至暗时刻,一堆烂摊子等着我去收拾,这两天搞的心力憔悴
升级了 8.1.0.3381版本后,需要使用下面这组注册码 License:zdfans Key:fZw2VoYzXakllUuLVdTH13QYWnjD6NZrxgubQkaRyxD5+HNMqdr+WZKkaa6IoE5N Licensee:zd423 Key:LrZoHQetrL7OK8XOVWgvTFn+XOR32hQkrxkYj0CkbDUsvvENp6GCS38B8GiOS1ec 升级了 8.1.0.3379版本后,需要使用下面这组注册码 License:newasp.net Key:FfZqw3QtEBv6ROLvK1rV48CrzccgZ606uX6zvtI82d…
今天发给Nextcloud升级,升级到一半出问题了,刷新页面 提示 Nextcloud正处于升级模式 没法做其他操作! 分享一个关闭Nextcloud维护模式的命令 需要在linux服务器终端里 进入Nextcloud的网站根目录 然后 CentOS中:sudo -u www php occ maintenance:mode –off
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 |
/* 第一套图片上传样式(内部图标相机) */ .upload-image-view { width: 100%; margin: 20upx 0 20upx 0; display: flex; flex-wrap: wrap; align-items: center; } .upload-image-view .title { width: 100%; font-family: PingFang-SC-Regular; font-size: 24upx; color: #4a4a4a; margin-bottom: 15upx; line-height: 100%; } .upload-image-view .info { width: 100%; font-family: PingFang-SC-Regular; font-size: 24upx; color: #ff4259; height: 24upx; margin-top: 15upx; line-height: 24upx; } .upload-image-view .image-view { height: 130upx; width: 130upx; position: relative; margin: 15upx 15upx 15upx 0upx; border-radius: 8upx; } .upload-image-view .image-view image { height: 100%; width: 100%; border-radius: 8upx; } .upload-image-view .image-view .del-btn { background-color: #f67371; border-radius: 50%; width: 25upx; height: 25upx; position: absolute; top: -12upx; right: -12upx; z-index: 2; display: flex; justify-content: center; align-items: center; } .upload-image-view .image-view .del-btn .baicha { display: inline-block; width: 20upx; height: 5upx; background: #fff; line-height: 0; font-size: 0; vertical-align: middle; -webkit-transform: rotate(45deg); } .upload-image-view .image-view .del-btn .baicha:after { content: '/'; display: block; width: 20upx; height: 5upx; background: #fff; -webkit-transform: rotate(-90deg); } .upload-image-view .add-view { height: 115upx; width: 115upx; margin: 15upx 15upx 15upx 0upx; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.00); border: 3upx dashed #979797; border-radius: 8upx; } /* 相机 */ .upload-image-view .add-view .xiangji { height: 40upx; width: 48upx; display: flex; justify-content: center; flex-wrap: wrap; } .upload-image-view .add-view .xiangji .tixing { width: 10upx; height: 7upx; background-color: #fff; border-right: 10upx solid #fff; border-bottom: 7upx solid #b2b2b2; border-left: 10upx solid #fff; } .upload-image-view .add-view .xiangji .changfx { height: 32upx; width: 48upx; border-radius: 5%; background-color: #b2b2b2; display: flex; align-items: center; justify-content: center; } .upload-image-view .add-view .xiangji .changfx .yuan1 { height: 20upx; width: 20upx; border-radius: 50%; background-color: #fff; display: flex; align-items: center; justify-content: center; } .upload-image-view .add-view .xiangji .changfx .yuan2 { height: 10upx; width: 10upx; border-radius: 50%; background-color: #b2b2b2; } /* 第二套图片上传样式(内部图标 十字架)*/ /* 十字架 */ .upload-image-view .add-view .cross { height: 48upx; width: 48upx; display: flex; flex-wrap: wrap; position: relative; } .upload-image-view .add-view .cross .transverse-line { height: 100%; width: 48%; position: absolute; border-right: 3upx solid #5A5A5A; top: 0; left: 0; } .upload-image-view .add-view .cross .vertical-line { height: 48%; width: 100%; position: absolute; border-bottom: 3upx solid #5A5A5A; top: 0; left: 0; } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 |
<template> <view class="body-view"> <view class="info-table"> <view class="info-table-row"> <view class="table-row-left">技能名称</view> <view class="table-row-right"> <input type="text" /> </view> </view> <view class="info-table-row"> <view class="table-row-left">熟练程度</view> <view class="table-row-right"> <image src="../../static/imgs/system/leftjt.svg"></image> </view> </view> </view> <view class="uploads"> <!-- 图片上传 --> <view class='upload-image-view'> <!-- 标题已经省略 --> <!-- <view class='title'>上传xxxx图片</view> --> <block v-for="(image,index) in imageList" :key="index"> <view class='image-view'> <image :src="image" :data-src="image" @tap="previewImage"></image> <view class='del-btn' :data-index="index" @tap='deleteImage'> <view class='baicha'></view> </view> </view> </block> <view class='add-view' v-if="imageList.length < imageLength" @tap="chooseImage"> <!-- 相机 --> <!-- <view class="xiangji"> <view class="tixing"></view> <view class='changfx'> <view class='yuan1'> <view class='yuan2'></view> </view> </view> </view> --> <!-- 十字架 --> <view class="cross"> <view class="transverse-line"></view> <view class="vertical-line"></view> </view> </view> <view class='info'>上传证书/证件,不超过{{imageLength}}张。(非必填)</view> </view> <!-- 图片上传 --> </view> <view class="table-btn-view"> <button class="save-btn">保存</button> </view> </view> </template> <script> var sourceType = [ ['camera'], //拍照 ['album'], //相册 ['camera', 'album'] //拍照或相册 ] var sizeType = [ ['compressed'], //压缩 ['original'], //原图 ['compressed', 'original'] //压缩或原图 ] export default { data() { return { imageList: [], //保存图片路径集合 imageLength: 3, //限制图片张数 sourceTypeIndex: 2, //添加方式限制 sizeTypeIndex: 2, //图片尺寸限制 } }, onUnload() { }, methods: { //选择图片 chooseImage: async function() { uni.chooseImage({ sourceType: sourceType[this.sourceTypeIndex], // #ifdef MP-WEIXIN sizeType: sizeType[this.sizeTypeIndex], // #endif count: this.imageLength - this.imageList.length, success: (res) => { this.imageList = this.imageList.concat(res.tempFilePaths); } }) }, //预览图片 previewImage: function(e) { var current = e.target.dataset.src uni.previewImage({ current: current, urls: this.imageList }) }, //删除图片 deleteImage: function(e) { var index = e.target.dataset.index; var that = this; var images = that.imageList; images.splice(index, 1); that.imageList = images; } } } </script> <style> @import "../../static/css/upload-imgs.css"; page { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; background-color: #FFFFFF; } .body-view { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; } .info-table { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; background-color: #FFFFFF; } .info-table .info-table-row { height: 120upx; width: 92%; display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; border-bottom: 1upx solid rgba(204, 204, 204, 1); } .info-table .info-table-row .table-row-left { height: 40upx; font-size: 28upx; font-weight: 400; color: rgba(28, 28, 28, 1); line-height: 40upx; } .info-table .info-table-row .table-row-right { display: flex; align-items: center; justify-content: center; } .info-table .info-table-row .table-row-right image { width: 13upx; height: 24upx; } .info-table .info-table-row .table-row-right input { width: 560upx; height: 40upx; font-size: 28upx; font-weight: 400; color: rgba(28, 28, 28, 1); line-height: 40upx; } .table-btn-view { position: fixed; bottom: 27upx; width: 100%; display: flex; align-items: center; justify-content: center; } .table-btn-view .save-btn { width: 92%; height: 90upx; background: rgba(0, 170, 255, 1); border-radius: 10upx; color: #FFFFFF; } .uploads{ width: 92%; } </style> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
<!-- 图片上传 --> <view class='upload-image-view'> <!-- 标题已经省略 --> <!-- <view class='title'>上传xxxx图片</view> --> <block v-for="(image,index) in imageList" :key="index"> <view class='image-view'> <image :src="image" :data-src="image" @tap="previewImage"></image> <view class='del-btn' :data-index="index" @tap='deleteImage'> <view class='baicha'></view> </view> </view> </block> <view class='add-view' v-if="imageList.length < imageLength" @tap="chooseImage"> <!-- 相机 --> <!-- <view class="xiangji"> <view class="tixing"></view> <view class='changfx'> <view class='yuan1'> <view class='yuan2'></view> </view> </view> </view> --> <!-- 十字架 --> <view class="cross"> <view class="transverse-line"></view> <view class="vertical-line"></view> </view> </view> <view class='info'>上传证书/证件,不超过{{imageLength}}张。(非必填)</view> </view> <!-- 图片上传 --> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
var sourceType = [ ['camera'], //拍照 ['album'], //相册 ['camera', 'album'] //拍照或相册 ] var sizeType = [ ['compressed'], //压缩 ['original'], //原图 ['compressed', 'original'] //压缩或原图 ] export default { data() { return { imageList: [], //保存图片路径集合 imageLength: 3, //限制图片张数 sourceTypeIndex: 2, //添加方式限制 sizeTypeIndex: 2, //图片尺寸限制 } }, onUnload() { }, methods: { //选择图片 chooseImage: async function() { uni.chooseImage({ sourceType: sourceType[this.sourceTypeIndex], // #ifdef MP-WEIXIN sizeType: sizeType[this.sizeTypeIndex], // #endif count: this.imageLength - this.imageList.length, success: (res) => { this.imageList = this.imageList.concat(res.tempFilePaths); } }) }, //预览图片 previewImage: function(e) { var current = e.target.dataset.src uni.previewImage({ current: current, urls: this.imageList }) }, //删除图片 deleteImage: function(e) { var index = e.target.dataset.index; var that = this; var images = that.imageList; images.splice(index, 1); that.imageList = images; } } } |