随笔分类 -  Differentiate

摘要:通用公式: a % b = a - int(a / b) * b 取整: 向下取整 -∞方向 floor(a/b) 取底除法Python 向零取整, 舍弃小数, 截断除法C Java Javascript 取模公式通用, 但是因为取整的区别, Python的取模跟其他语言不一样,Python真是怪胎 阅读全文
posted @ 2022-03-22 12:19 ascertain 阅读(173) 评论(0) 推荐(0) 编辑
摘要:正常情况, 赋值给其他变量 public class B { public static void main(String[] args) { int bb = 5; int pp = ++bb; System.out.println(pp); } } public class B { public 阅读全文
posted @ 2022-03-22 10:56 ascertain 阅读(31) 评论(0) 推荐(0) 编辑
摘要:Python: 当 \char 不构成转义序列时, \ 被作为普通字符, \1 \100 八进制转义序列 Javascript: Java: 阅读全文
posted @ 2022-03-03 10:08 ascertain 阅读(27) 评论(0) 推荐(0) 编辑
摘要:js 正向肯定预查 正向否定预查 反向肯定预查 反向否定预查 (?=) (?!) (?<=) (?<!)python 阅读全文
posted @ 2021-04-22 08:39 ascertain 阅读(92) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示