Word 隐藏所有回车换行符
Windows 系统下,按 Ctrl + Shift + 8 可以快速显示或隐藏所有格式标记,包括回车符(¶)。 macOS 系统下,视图 -> 显示段落标 中,取消勾选。
Day 8 – 函数参数
有参函数 带有输入参数的函数即为有参函数,有参函数的基本语法 # 函数定义 def <function name>(param1, param2,...): # Do this with param1, param2,... # 函数调用 <function name>(a...
Day 10 – 函数输出
单返回值 函数通过 return 关键字,进行函数的输出。 def function_name(input_parameter): <body of function that uses input_argument> return output 示例代码 def format_name(f_nam...
Day 20 – 贪吃蛇(上)
设置游戏屏幕 from turtle import Screen screen = Screen() # 设置屏幕大小 screen.setup(width=600, height=600) # 设置背景颜色 screen.bgcolor('black') # 设置标题 screen.title('贪吃蛇')...
How to discard results in a task group 如何丢弃任务组中的结果
Swift has a special task group type called a discarding task group, which has a very specialized function: tasks that complete are automatically discarded and destroyed, ...
Who decides which actor code runs on? 谁决定在哪个 actor 代码上运行?
One common confusion with actors comes in deciding exactly where code runs, because just adding @MainActor and hoping for the best is rarely good enough.与 Actor 的一个常...
Release checklist 版本清单
Sure, all your tests pass, but how can you make sure your app functions properly? Most large projects have a solution called a release checklist, and here I want to share mine wit...








