defjulia_set(c, width, height, max_iter): x = np.linspace(-2, 2, width) y = np.linspace(-2, 2, height) escape_time = np.zeros((height, width)) # 注意这里的维度顺序 for i inrange(width): for j inrange(height): z = complex(x[i], y[j]) n = 0 whileabs(z) <= 2and n < max_iter: z = z*z + c n += 1 escape_time[j, i] = n # 根据像素位置更新逃逸时间 return x, y, escape_time
Traceback (most recent call last): File "/usr/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module> main() ~~~~^^ File "/usr/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel return hook(config_settings) File "/usr/lib/python3.13/site-packages/setuptools/build_meta.py", line 332, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/site-packages/setuptools/build_meta.py", line 302, in _get_build_requires self.run_setup() ~~~~~~~~~~~~~~^^ File "/usr/lib/python3.13/site-packages/setuptools/build_meta.py", line 516, in run_setup super().run_setup(setup_script=setup_script) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/site-packages/setuptools/build_meta.py", line 318, in run_setup exec(code, locals()) ~~~~^^^^^^^^^^^^^^^^ File "<string>", line 38, in <module> File "/home/feng/.cache/paru/clone/veusz/src/veusz-3.6.2/pyqt_setuptools.py", line 11, in <module> import tomli ModuleNotFoundError: No module named 'tomli'
dig(Domain Information Groper)是 Linux 和 Unix
系统中用于查询 DNS(域名系统)的强大工具。它提供了对 DNS
查询的详细控制,并且可以用来执行各种类型的 DNS 查询,包括但不限于 A
记录、MX 记录、NS 记录、CNAME 记录、TXT 记录等。dig
是网络管理员和开发者调试 DNS
问题、验证域名配置以及获取有关互联网资源信息的重要工具。
pool=(a b c d e f g h i j k l m n o p q r s t 1 2 3 4 5 6 7 8 9 10) num=${#pool[*]} result=${pool[$((RANDOM%num))]}
用于生成一段特定长度的有数字和字母组成的字符串,字符串中元素来自自定义的池子。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/bash length=8 i=1 seq=(0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) num_seq=${#seq[@]} while [ "$i" -le "$length" ] do seqrand[$i]=${seq[$((RANDOM%num_seq))]} let"i=i+1" done echo"The random string is:" for j in${seqrand[@]} do echo -n $j done echo
The default hostname is `github.com`. This can be overridden using the `--hostname` flag.
The default authentication mode is a web-based browser flow. After completion, an authentication token will be stored securely in the system credential store. If a credential store is not found or there is an issue using it gh will fallback to writing the token to a plain text file. See `gh auth status` for its stored location.
Alternatively, use `--with-token` to pass in a personal access token (classic) on standard input. The minimum required scopes for the token are: `repo`, `read:org`, and `gist`.
Fine-grained personal access tokens are not supported.
Alternatively, gh will use the authentication token found in environment variables. This method is most suitable for"headless" use of gh such as in automation. See `gh help environment` for more info.
To use gh in GitHub Actions, add `GH_TOKEN: ${{ github.token }}` to `env`.
The git protocol to use for git operations on this host can be set with `--git-protocol`, or during the interactive prompting. Although login is for a single account on a host, setting the git protocol will take effect for all users on the host.
Specifying `ssh` for the git protocol will detect existing SSH keys to upload, prompting to create and upload a new key if one is not found. This can be skipped with `--skip-ssh-key` flag.
For more information on OAuth scopes, <https://docs.github.com/en/developers/apps/building-oauth-apps/scopes-for-oauth-apps/>.
USAGE gh auth login [flags]
FLAGS -p, --git-protocol string The protocol to use for git operations on this host: {ssh|https} -h, --hostname string The hostname of the GitHub instance to authenticate with --insecure-storage Save authentication credentials in plain text instead of credential store -s, --scopes strings Additional authentication scopes to request --skip-ssh-key Skip generate/upload SSH key prompt -w, --web Open a browser to authenticate --with-token Read token from standard input
INHERITED FLAGS --help Show helpforcommand
EXAMPLES # Start interactive setup $ gh auth login # Authenticate against github.com by reading the token from a file $ gh auth login --with-token < mytoken.txt # Authenticate with specific host $ gh auth login --hostname enterprise.internal
LEARN MORE Use `gh <command> <subcommand> --help` for more information about a command. Read the manual at https://cli.github.com/manual Learn about exit codes using `gh help exit-codes`