发布了文章2021-09-20
Given an integer array nums and an integer k, please return the k-th largest element in thearray. Your algorithm’s runtime complexity must be in the order of \( O(n) \), prove the correctness and analyze the complexity.(k is much smaller than n, n...
发布了文章2021-09-09
1.benefit -- good/profit/improve/increase/help2.problem -- 对应段落的消极信息3.concern -- worry/risk/fail/not...4.people -- public/Americans/individual/commonly/received wisdom5.stereotype -- traditional/old/unchanged/prevailing view/for a long ti...
发布了文章2021-09-09
英语毕竟是一门语言,我们学习时还是需要打好基础,学习其语法,本次文章对三大从句:定语从句(形容词性从句)、状语从句(副词性从句)、名词性从句进行归纳总结。
发布了文章2021-09-09
getDate( )返回一个月中的某一天 (1 ~ 31)getDay( )返回一周中的某一天 (0 ~ 6)getFullYear( )以四位数字返回年份getMonth( )返回月份 (0 ~ 11)getHours( )返回小时 (0 ~ 23)getMinutes( )返回分钟 (0 ~ 59)getSeconds( )返回秒数 (0 ~ 59)getTime( )返回 1970 年 1 ...
发布了文章2021-09-09
vector的优点:(1)可将容器中元素翻转、复制元素、找到元素值对应的位置(2)迭代器可以按照不同的方式遍历容器(3)可在容器的末尾增加或删除元素(4)可在任意位置插入数据与数组相比,容器在自动处理容量的大小时会消耗更多的内存,但能很好的调整存储空间大小。
发布了文章2021-09-09
1. 文件及目录操作命令pwd:显示用户当前所处的目录 ls:列出目录下的文件清单cd:改变当前目录 cd .. 返回上一级目 cd / 进入根目录 不加参数或参数为“~”,默认切换到用户主目录mkdir:建立目录rmdir:删除目录 cp:拷贝文件/目录rm:删除文件/目录mv:移...
发布了文章2021-09-09
实际操作发现,添加镜像源之后,安装pytorch依然花费很长的时间,这是因为“ -c pytorch ”。-c pytorch 指定了conda获取pytorch的channel,指定为conda自带的pytorch仓库,下载会比较慢。因此,只需将 -c pytorch 去掉,就可以使用清华镜像源快速安装pytorch了。
发布了文章2021-09-09
倘若输入 import tensorflow as tf 后出现蓝色框部分,按照他给的提示路径找到 dtypes.py 文件,进入找到第469~473、476行,将“1”修改为“(1,)” (注意:括号和逗号是英文状态下的)