![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
自学
fireyecat
这个作者很懒,什么都没留下…
展开
-
使用vim浏览和编辑文件时实现文本上下移动,而光标行不动
如果把scrolloff选项设置成一个很大的值,超过屏幕所能显示总行数的一半,光标所在行将始终停留在窗口的中间。当你上下移动光标时,文本会向相反的方向移动。原创 2022-07-22 16:56:40 · 1514 阅读 · 1 评论 -
【无标题】
Being stuck at "loading initial ramdisk" solved by unchecking the option of "Save session for future logins" on the Log out dialog卡在这里的原因很多吧,解决的方法也会各有不同。原创 2022-05-28 15:47:19 · 91 阅读 · 0 评论 -
如何将 Bash 命令的输出赋值给 Bash 变量
有时需要将 Bash 命令的输出保存以作他用。Bash 提供了两种将 Bash 命令的输出赋值给 Bash 变量的方法。原创 2022-04-28 12:04:39 · 1919 阅读 · 0 评论 -
安卓手机节拍器
安卓手机应用节拍器,原创 2021-02-27 14:36:51 · 450 阅读 · 0 评论 -
function zip
发一张图片原创 2020-12-24 20:21:18 · 79 阅读 · 1 评论 -
Variable-length argument tuples
write a function called sum_all that takes any number of arguments andreturns their sum.def sum_all(*nu): cnt = 0.0 for i in nu: cnt += i return cntprint(sum_all(1, 3, 5.5))print(sum_all(2.2, 3.3, 9, 555))原创 2020-12-21 12:51:28 · 63 阅读 · 0 评论 -
20201213nested_sum
Exercise 10.1. Write a function called nested_sum that takes a list of lists of integers and adds upthe elements from all of the nested lists. For example:>>> t = [[1, 2], [3], [4, 5, 6]]>>> nested_sum(t)21def lsum(ls): ...原创 2020-12-13 00:18:32 · 289 阅读 · 1 评论 -
2020-12-11-Wordplay
Exercise 9.6. Write a function called is_abecedarian that returns True if the letters in a wordappear in alphabetical order (double letters are ok). How many abecedarian words are there?def isa(word): nw = word.casefold() count = 0 pos =...原创 2020-12-11 16:38:38 · 167 阅读 · 1 评论 -
保存学习过程
just test原创 2008-10-26 22:49:00 · 239 阅读 · 0 评论