杜逸先 使用 VS Code 开发 Python 项目的最佳实践使用VS Code进行Python开发 的最佳实践 杭州美登科技 杜逸先 目录 CONTENTS 什么是VS Code VS Code与Python 最佳实践 提问时间 什么是VS Code 什么是VS Code 什么是VS Code 什么是VS Code 1. 开源+跨平台 2. 轻量级+丰富的插件生态 3. 开箱即用+高度自定义(颜色主题、按键绑定、版本控制工具等) VS Code与Python VS Code与Python VS Code与Python——Autocomplete and IntelliSense VS Code与Python——Autocomplete and IntelliSense VS Code与Python——Refactoring(Extract Variable) VS Code与Python——Refactoring(Extract Method) VS Code与Python——Refactoring(Sort imports) VS Code与Python——Linting VS Code与Python——Linting VS Code与Python——Formatting VS Code与Python——Formatting VS Code与Python——Debugging VS Code与Python——Debugging0 码力 | 46 页 | 2.65 MB | 1 年前3
1 Python在Azure Notebook产品发展中的核心地位 以及通过Visual Studio Code的最佳Azure实践 韩骏Python 与 Visual Studio Code 在 人工智能应用中的最佳 Azure 实践 韩骏@formulahendry 自我介绍 • 微软研发工程师 @ Visual Studio China • IoT • VS Code • VS Code 代码贡献者 • 多款 VS Code 插件作者 • “玩转VS Code”知乎专栏 & 微信公众号作者 https://zhuanlan https://zhuanlan.zhihu.com/vs-code • https://github.com/formulahendry/955.WLB • Speaker @ 2018 微软技术暨生态大会 • CodeLab @ Google Developer Group • Speaker @ 2019 GitHub 中国官方见面会 我开发的插件 Python 与人工智能 “Python的快速发展的一个主要增 Stack Overflow 2019 开发者调查 Visual Studio Code • 开源 • 跨平台 • 轻量级 • 智能提示 (IntelliSense) • 代码调试 • 内置 Git 支持 • 多语言支持 • 丰富的插件 VS Code 最热门的插件是? 官宣!全球首秀 Visual Studio Code Python 插 件将提供 Jupyter Notebook 的原生支持0 码力 | 55 页 | 14.99 MB | 1 年前3
AI大模型千问 qwen 中文文档data for aligning to human preferences. Qwen is capable of natural language understanding, text generation, vision understanding, audio understanding, tool use, role play, playing as AI agent, etc. 最新版本 AutoTokenizer device = "cuda" # the device to load the model onto # Now you do not need to add "trust_remote_code=True" model = AutoModelForCausalLM.from_pretrained( "Qwen/Qwen1.5-7B-Chat", torch_dtype="auto", device_map="auto" "user", "content": prompt} ] text = tokenizer.apply_chat_template( messages, tokenize=False, add_generation_prompt=True ) model_inputs = tokenizer([text], return_tensors="pt").to(device) # Directly use0 码力 | 56 页 | 835.78 KB | 1 年前3
FISCO BCOS 2.1.0 中文文档function register(string account, uint256 asset_value) public returns(int256){ int256 ret_code = 0; int256 ret= 0; uint256 temp_asset_value = 0; // 查询账户是否存在 (ret, temp_asset_value) 成功 ret_code = 0; } else { // 失败? 无权限或者其他错误 ret_code = -2; } } else { // 账户已存在 ret_code = -1; } emit RegisterEvent(ret_code, account, asset_value); return ret_code; } /* 描述 : 资产转移 参数 : from_account : 转移资产账户 to_account : 接收资产账户 amount : 转移金额0 码力 | 1058 页 | 740.85 KB | 1 年前3
FISCO BCOS 2.3.0 中文文档function register(string account, uint256 asset_value) public returns(int256){ int256 ret_code = 0; int256 ret= 0; uint256 temp_asset_value = 0; // 查询账户是否存在 (ret, temp_asset_value) 成功 ret_code = 0; } else { // 失败? 无权限或者其他错误 ret_code = -2; } } else { // 账户已存在 ret_code = -1; } emit RegisterEvent(ret_code, account, asset_value); return ret_code; } /* 描述 : 资产转移 参数 : from_account : 转移资产账户 to_account : 接收资产账户 amount : 转移金额0 码力 | 1227 页 | 10.79 MB | 1 年前3
FISCO BCOS 2.2.0 中文文档function register(string account, uint256 asset_value) public returns(int256){ int256 ret_code = 0; int256 ret= 0; uint256 temp_asset_value = 0; // 查询账户是否存在 (ret, temp_asset_value) 成功 ret_code = 0; } else { // 失败? 无权限或者其他错误 ret_code = -2; } } else { // 账户已存在 ret_code = -1; } emit RegisterEvent(ret_code, account, asset_value); return ret_code; } /* 描述 : 资产转移 参数 : from_account : 转移资产账户 to_account : 接收资产账户 amount : 转移金额0 码力 | 1156 页 | 10.03 MB | 1 年前3
FISCO BCOS 2.4.0 中文文档function register(string account, uint256 asset_value) public returns(int256){ int256 ret_code = 0; int256 ret= 0; uint256 temp_asset_value = 0; // 查询账户是否存在 (ret, temp_asset_value) 成功 ret_code = 0; } else { // 失败? 无权限或者其他错误 ret_code = -2; } } else { // 账户已存在 ret_code = -1; } emit RegisterEvent(ret_code, account, asset_value); return ret_code; } /* 描述 : 资产转移 参数 : from_account : 转移资产账户 to_account : 接收资产账户 amount : 转移金额0 码力 | 1314 页 | 11.21 MB | 1 年前3
FISCO BCOS 2.5.0 中文文档function register(string account, uint256 asset_value) public returns(int256){ int256 ret_code = 0; int256 ret= 0; uint256 temp_asset_value = 0; // 查询账户是否存在 (ret, temp_asset_value) 成功 ret_code = 0; } else { // 失败? 无权限或者其他错误 ret_code = -2; } } else { // 账户已存在 ret_code = -1; } emit RegisterEvent(ret_code, account, asset_value); return ret_code; } /* 描述 : 资产转移 参数 : from_account : 转移资产账户 to_account : 接收资产账户 amount : 转移金额0 码力 | 1456 页 | 13.35 MB | 1 年前3
Apache ShardingSphere v5.5.0 document. . . . . . . . . . . . . . 458 9.4 Error Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 460 9.4.1 SQL Error Code . . . . . . . . . . . . . . . . . . . . . Exception . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 467 9.4.2 Server Error Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 467 10 Dev Manual 468 10.1 Mode . . . . . . . . . . . 583 13.6.5 Other In Windows environment,when cloning ShardingSphere source code through Git, why prompt filename too long and how to solve it? . . . . . . . . . 584 13.6.6 Other0 码力 | 602 页 | 3.85 MB | 1 年前3
Java 应用与开发 - Java 内存模型与分配机制以找到这个实例在堆区对应的对象。因此,普通类型变量只 在栈区占用一块内存,而引用类型变量要在栈区和堆区各占 一块内存。 大纲 Java 内存模型 Java 程序内存运行分析 Java 内存管理建议 所用讲解程序示例 CODE ± Test.java 1 public class Test { 2 public static void main(String[] args) { 3 Test test = new 调整 JVM 启动参数 -Xms -Xmx -XX:newSize -XX:MaxNewSize, 如调整初始堆内存和最大对内存 -Xms256M -Xmx512M。或者调整 初始 New Generation 的初始内存和最大内存 -XX:newSize=128M -XX:MaxNewSize=128M。 永久区内存优化 调整 PermSize 参数如 -XX:PermSize=256M -XX:MaxPermSize=512M。 调整 JVM 启动参数 -Xms -Xmx -XX:newSize -XX:MaxNewSize, 如调整初始堆内存和最大对内存 -Xms256M -Xmx512M。或者调整 初始 New Generation 的初始内存和最大内存 -XX:newSize=128M -XX:MaxNewSize=128M。 永久区内存优化 调整 PermSize 参数如 -XX:PermSize=256M -XX:MaxPermSize=512M。0 码力 | 44 页 | 818.30 KB | 1 年前3
共 703 条
- 1
- 2
- 3
- 4
- 5
- 6
- 71













