
笔记
Agetha
这个作者很懒,什么都没留下…
展开
-
git使用笔记最后一弹
Git - Keeping your code upto date!After cloning, we recommend creating a branch and doing your development on that branch:git checkout -b develop(assuming develop is the name of your branch)If the TAs push out an update to the assignment, you should co原创 2021-09-06 10:21:31 · 210 阅读 · 0 评论 -
python-array遍历及打印
for i in [10,20,30,40]: print(i)for i in range(5): print(f"square of {i} is {i**2}")i = 0while i<5: print(f"square of {i} is {i**2}") i += 1前两个输出都是square of 0 is 0square of 1 is 1square of 2 is 4square of 3 is 9square of 4 is 16some_arr原创 2021-09-06 10:19:50 · 1049 阅读 · 0 评论 -
python-dictionary便历及元素打印
for key, value in some_dict.items(): print(f"{key} - {value}")原创 2021-09-06 10:13:21 · 179 阅读 · 0 评论 -
如何改变tuple元素值
# The only way to modify tuple is to convert it to array/list and then back to tupletemp_list = list(some_tuple)temp_list[1] = 123some_tuple = tuple(temp_list)some_tuplelist()tuple()原创 2021-09-06 10:09:43 · 1493 阅读 · 0 评论 -
array学习笔记
array.pop()踢出并且输出array的最后一个元素原创 2021-09-06 10:05:56 · 116 阅读 · 0 评论 -
python string使用方法
[-3:-1]是从-3开始,-1结束。包括-3,不包括-1.[-2:]是从-2开始,-1结束,包括-1,不包括0.原创 2021-09-06 10:02:02 · 240 阅读 · 0 评论 -
jupyter快捷键(hotkey)
Shift + Enter - Run cell + select next cellAlt + Enter - Run cell + insert new cell belowHere are hotkeys you can use in command mode only.a - Insert cell aboveb - Insert cell belowShift + Up-Down Arrow key or Shift + mouse click cells - select multip原创 2021-09-06 09:55:45 · 249 阅读 · 0 评论 -
如何分离地复制一个函数
使用copy()函数import copya = [1,2]b = copy.copy(a)b.append(3)print(a)print(b)原创 2021-09-06 09:53:23 · 138 阅读 · 0 评论 -
jupyter计时语句%%time
把%%time放在cell的第一句,运行结束就会显示运行整个cell所用的时间。原创 2021-09-06 09:44:05 · 857 阅读 · 0 评论 -
np.ones用法
numpy.ones(shape, dtype=None, order=‘C’, *, like=None)Return a new array of given shape and type, filled with ones.参数:shape:int or sequence of intsdtype:data-type, optionalThe desired data-type for the array, e.g., numpy.int8. Default is numpy.float64原创 2021-09-06 09:38:54 · 4646 阅读 · 0 评论 -
jupyter的kernel功能:Interrupt、Restart、Clear Output、Run All
Interrupt - 暂停程序stops the execution of the code (helpful when you have a long operation but forget to change some parameter, or in case you have an infinite loop)Restart - 清空变量 释放内存clears up all of the variables and releases memoryRestart & Cle..原创 2021-09-05 23:13:43 · 2398 阅读 · 0 评论 -
conda 创建/删除/重命名 环境
创建新环境conda create --name ai_env python=3.7 -y删除环境conda remove -n ai_env --all重命名环境conda 其实没有重命名指令,实现重命名是通过 clone 完成的,分两步:先 clone 一份 new name 的环境conda create -n tf --clone ai_env删除 old name 的环境conda remove -n ai_env --all...原创 2021-09-03 23:47:03 · 284 阅读 · 0 评论 -
conda -v有error
因为需要是conda --v而不是conda -v一个符号的差别原创 2021-09-03 23:14:54 · 349 阅读 · 0 评论 -
解决:error: Couldn‘t find a setup script in C:\Users\用户名\pip
打开C:\Users\用户名\pip文件夹,只有一个pip.txt。解决方法:删除C:\Users\用户名里上次卸载没删干净的pip文件夹原创 2021-05-24 18:36:36 · 2511 阅读 · 0 评论 -
git升级及账号配置
去官网下载新的安装包覆盖安装比较麻烦直接本地打开Git,输入git update-git-for-windows原创 2021-04-08 23:08:17 · 152 阅读 · 0 评论 -
CV语义分割学习笔记
完成比赛baseline流程原创 2021-02-21 01:07:48 · 237 阅读 · 0 评论