aplayer

Vue中音乐播放器

老子叫甜甜 提交于 2019-11-30 21:11:37
一.安装依赖 yarn add vue-aplayer ​ or` npm i vue-aplayer 二.使用 <template> <div class="vue_aplayer"> <aplayer autoplay :music="{ title: '歌曲标题', artist: '歌手名', src: '歌曲url', pic: '歌曲播放器封面url' }" /> </div> </template> <script> import aplayer from 'vue-aplayer' export default { name: "VueAplayer", components: { aplayer } } </script> <style scoped> </style> 三.官方文档 点我官方文档 点我中文官方文档 四.作者 https://segmentfault.com/u/sevenoutman 来源: https://www.cnblogs.com/pythonywy/p/11640559.html

CCF-CSP题解 201609-3 炉石传说

↘锁芯ラ 提交于 2019-11-28 05:13:35
模拟。 注意随从的编号在 \(summon\) 和 \(attack\) 随从死亡时都可能改变。 #include <bits/stdc++.h> using namespace std; struct tNode { int attack; int health; }; tNode aPlayer[8]; tNode bPlayer[8]; int aM = 0, bM = 0; int aHealth = 30, bHealth = 30; int main() { int n; scanf("%d", &n); int player = 1; char op[30]; while (n--) { scanf("%s", op); if (op[0] == 's') { int pos, attack, health; scanf("%d%d%d", &pos, &attack, &health); if (player == 1) { for (int i = aM + 1; i >= pos + 1; i--) aPlayer[i] = aPlayer[i - 1]; aPlayer[pos].attack = attack; aPlayer[pos].health = health; aM++; } else { for (int i = bM + 1; i >= pos