extension 中能增加存储属性吗?

extension :可以增加计算属性,不能增加存储属性。
extension是用来给存在的类型添加新行为的并不能改变类型或者接口本身。因为 extension 不能为类或结构体增加实际的存储空间。
(swift 没有分类的概念 只有extension扩展)

v[W 2025-10-29 00:51:22.136 ServerApp] A `_jupyter_server_extension_points` function was not found in jupyter_lsp. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server. [W 2025-10-29 00:51:22.436 ServerApp] A `_jupyter_server_extension_points` function was not found in notebook_shim. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server. [I 2025-10-29 00:51:25.260 ServerApp] Extension package panel.io.jupyter_server_extension took 2.8212s to import [I 2025-10-29 00:51:25.261 ServerApp] jupyter_lsp | extension was successfully linked. [I 2025-10-29 00:51:25.274 ServerApp] jupyter_server_terminals | extension was successfully linked. [I 2025-10-29 00:51:25.286 ServerApp] jupyterlab | extension was successfully linked. [I 2025-10-29 00:51:25.300 ServerApp] notebook | extension was successfully linked. [I 2025-10-29 00:51:26.305 ServerApp] notebook_shim | extension was successfully linked. [I 2025-10-29 00:51:26.305 ServerApp] panel.io.jupyter_server_extension | extension was successfully linked. [I 2025-10-29 00:51:26.407 ServerApp] notebook_shim | extension was successfully loaded. [I 2025-10-29 00:51:26.412 ServerApp] jupyter_lsp | extension was successfully loaded. [I 2025-10-29 00:51:26.413 ServerApp] jupyter_server_terminals | extension was successfully loaded. [I 2025-10-29 00:51:26.428 LabApp] JupyterLab extension loaded from C:\Users\wws\Anaconda3\Lib\site-packages\jupyterlab [I 2025-10-29 00:51:26.428 LabApp] JupyterLab application directory is C:\Users\wws\Anaconda3\share\jupyter\lab [I 2025-10-29 00:51:26.430 LabApp] Extension Manager is 'pypi'. [I 2025-10-29 00:51:26.432 ServerApp] jupyterlab | extension was successfully loaded. [I 2025-10-29 00:51:26.446 ServerApp] notebook | extension was successfully loaded. [I 2025-10-29 00:51:26.447 ServerApp] panel.io.jupyter_server_extension | extension was successfully loaded. [I 2025-10-29 00:51:26.448 ServerApp] Serving notebooks from local directory: C:\Users\wws [I 2025-10-29 00:51:26.448 ServerApp] Jupyter Server 2.14.1 is running at: [I 2025-10-29 00:51:26.448 ServerApp] http://localhost:8888/tree?token=214a25ae7e7bb21324a86592d61c7ba73fb82b965d5a0d48 [I 2025-10-29 00:51:26.449 ServerApp] http://127.0.0.1:8888/tree?token=214a25ae7e7bb21324a86592d61c7ba73fb82b965d5a0d48 [I 2025-10-29 00:51:26.449 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [E 2025-10-29 00:51:26.449 ServerApp] Failed to write server-info to C:\Users\wws\AppData\Roaming\jupyter\runtime\jpserver-102284.json: PermissionError(13, 'Permission denied') Traceback (most recent call last): File "C:\Users\wws\Anaconda3\Scripts\jupyter-notebook-script.py", line 10, in sys.exit(main()) ^^^^^^ File "C:\Users\wws\Anaconda3\Lib\site-packages\jupyter_server\extension\application.py", line 623, in launch_instance serverapp.start() File "C:\Users\wws\Anaconda3\Lib\site-packages\jupyter_server\serverapp.py", line 3119, in start self.start_app() File "C:\Users\wws\Anaconda3\Lib\site-packages\jupyter_server\serverapp.py", line 3023, in start_app self.write_browser_open_files() File "C:\Users\wws\Anaconda3\Lib\site-packages\jupyter_server\serverapp.py", line 2890, in write_browser_open_files self.write_browser_open_file() File "C:\Users\wws\Anaconda3\Lib\site-packages\jupyter_server\serverapp.py", line 2913, in write_browser_open_file with open(self.browser_open_file, "w", encoding="utf-8") as f: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PermissionError: [Errno 13] Permission denied: 'C:\\Users\\wws\\AppData\\Roaming\\jupyter\\runtime\\jpserver-102284-open.html'
10-30
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值