print((5 + 10 * x) / 5 - 13 * (y - 1) * (a + b) / x + 9 * (5 / x + (12 + x) / y))
这样写对吗
底层的 这个键值 hash 存取过程没有听懂
老师这里为啥不用ul做,用ul做和这样用div直接做有什么区别吗
// index.js import { createRouter, createWebHashHistory } from 'vue-router' import HomeView from '../views/HomeView.vue' const routes = [ { path: '/', name: 'home', component: HomeView }, { path: '/about', name: 'about', component: () => import('../views/AboutView.vue') } ] const router = createRouter({ history: createWebHashHistory(), routes }) export default router // main.js import { createApp } from 'vue' import App from './App.vue' import './registerServiceWorker' import router from './router' createApp(App).use(router).mount('#app') <!-- App.vue --> <template> <div id="app"> <router-link to="/">Home</router-link> | <router-link to="/about">About</router-link> <router-view></router-view> </div> </template> <script> export default { name: 'App', } </script> <style> #app { font-family: Avenir, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-align: center; color: #2c3e50; margin-top: 60px; } </style> <!-- AboutView.vue --> <template> <h3>go to about view</h3> </template> <!-- HomeView.vue --> <template> <h3>Home View</h3> </template> 这是我完整代码
<template> <router-link to="/">Home</router-link> | <router-link to="/about">About</router-link> <router-view></router-view> </template> <script> export default { name: 'App', } </script> <style> #app { font-family: Avenir, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-align: center; color: #2c3e50; margin-top: 60px; } </style> 不显示路由视图
路由视图不显示,是版本的问题吗
var quickSort = function (arr) { if (arr.length <= 1) { return arr; } var pivotIndex = Math.floor(arr.length / 2); var pivot = arr.splice(pivotIndex, 1)[0]; var left = []; var right = []; for (var i = 0; i < arr.length; i++) { if (arr[i] < pivot) { left.push(arr[i]); } else { right.push(arr[i]); } } return quickSort(left).concat([pivot], quickSort(right)); };
我不理解的是最后面的
return quickSort(left).concat([pivot], quickSort(right));
为什么还要加pivot 根据前面的 if arr[i]<pivot else 可知pivot已经被放在 right中了 再加不久多余了吗,要不就在循环的最开始加上一个条件判断 当下标为
pivotIndex 时就 continue掉
为啥我的3D图是空白
老师还想再问一下这个,
我要选中这个类名 .app
除了用.app{ }
还可以用什么写法吗
可以用.nav-left下面什么什么的这样写吗
为什么return返回的端口号不一样
def put(self,key,val): '''添加数据''' # 判断是否需要扩容 if self.load_factor() > self.load_thres: # 扩容 pass
老师,这一步挺多余啊,即使需要扩容也已经在下面的extend函数扩容过了,这一步判断最终是pass,显得挺多余的
能不能考虑一下mac用户软件的下载
老师,从这节开始怎么没文档了
<i class="iconfont"></i>购物车(0)</a>
为什么这里用的i标签而不是p标签,
不加href的a标签和p标签和去掉倾斜的i标签可以混用吗,使用会有什么不一样吗
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637