zzhou75ubc

2024年1月29日

新旧表达&style rule

摘要: Interval 目前BSL中无interval这一个type,所以使用 ;;CONSTRAINT:always in the interval [0, WIDTH] 这种形式表明数据的区间 ;; 在程序的“永久”部分使用,比如purpose是程序固定的一部分,所以永远双分号 ; 在程序的临时部分使 阅读全文

posted @ 2024-01-29 11:16 zzhou75 阅读(2) 评论(0) 推荐(0) 编辑

2024年1月24日

CPSC 107 BSL基本知识

摘要: BSL(又幸福了姐/.) 基本运算表达 开方:(sqrt 16) output:4 平方: (sqr 2) output:4 无限小数表达:#i1. boolean是小写开头!! 基本定义 Experssion 定义 Is either a value, or of the form ( ...). 阅读全文

posted @ 2024-01-24 01:52 zzhou75 阅读(1) 评论(0) 推荐(0) 编辑

2023年10月25日

module2 review note

摘要: Module 2 The HtDF recipe consists of the following steps: Step 1: Write the stub, including signature and purpose Step 2: Define examples Step 3: Writ 阅读全文

posted @ 2023-10-25 14:12 zzhou75 阅读(5) 评论(0) 推荐(0) 编辑

2023年10月10日

cpsc 103 python基本前提

摘要: 课程书写要求HtDF Notation and Naming Conventions for Functions 1.the @typecheck annotation must be present in all functions 2.All function names should be l 阅读全文

posted @ 2023-10-10 17:51 zzhou75 阅读(8) 评论(0) 推荐(0) 编辑
module 1

摘要: module 1 讲解了python基本量的实践 错题 1 x = 9 sqrt(9) # a built-in math function that returns the square root of its input What is the value of x after the line 阅读全文

posted @ 2023-10-10 17:50 zzhou75 阅读(32) 评论(0) 推荐(0) 编辑