-
实现一个LazyMan,可以按照以下方式调用:
LazyMan(“Hank”)输出:
Hi! This is Hank!
LazyMan(“Hank”).sleep(10).eat(“dinner”)输出
Hi! This is Hank!
//等待10秒..
Wake up after 10
Eat dinner~
LazyMan(“Hank”).eat(“dinner”…
-
``` js
LazyMan('Hank')
// 输出:
// Hi!This is Hank!
LazyMan('Hank').sleep(10).eat('dinner')
// 输出:
// Hi! This is Hank!
// 等待10秒..
// Wake up after 10
// Eat dinner~
LazyMan('Hank').ea…
-
实现以下效果
```
LazyMan("Hank").sleep(5).eat("supper")
输出
Hi! This is Hank!
//等待5秒
Wake up after 5
Hi This is Hank!
Eat supper
```
-
```javascript
LazyMan('Tony');
// Hi I am Tony
LazyMan('Tony').sleep(10).eat('lunch');
// Hi I am Tony
// 等待了10秒...
// I am eating lunch
LazyMan('Tony').eat('lunch').sleep(10).eat('dinner')…
-
这道题还没毕业的时候就看到过,这段时间突然又看到,联想到 promise,感觉还是很有意思
实现一个 LazyMan:
```javascript
lazyMan('rick').eat('lunch').sleep(3000).eat('dinner');
```
输出:
```
Hi!This is rick!
eat lunch
// 等待 3 秒
eat dinne…
-
Repository here:
Awesome Neovim configuration based on scientific Python + LaTeX needs!
https://github.com/Dan7h3x/NvimPy
-
The official documentation says that it supports "[catppuccin](https://github.com/catppuccin/nvim), [tokyonight](https://github.com/folke/tokyonight.nvim), [nightfox](https://github.com/EdenEast/night…
wxguy updated
9 months ago
-
I've created a Neovim Configuration Manager that supports easy installation and initialization of multiple Neovim configurations using the `NVIM_APPNAME` environment variable in Neovim 0.9. I call it…
-
实现一个LazyMan,可以按照以下方式调用:
LazyMan(“Hank”)输出:
Hi! This is Hank!
LazyMan(“Hank”).sleep(10).eat(“dinner”)输出
Hi! This is Hank!
//等待10秒..
Wake up after 10
Eat dinner~
LazyMan(“Hank”).eat(“din…
-
You have to download and extract LazyMan ahead of time.
Dockerfile:
FROM ubuntu
RUN apt-get update && apt-get upgrade -y \
&& apt-get install -y software-properti…