Month: December 2021

VOCABULARY – TEST 4

题目 Weather in mountainous areas is quite mutable. A) 寒冷的 B) 易变的 C) 潮湿的 D) 阴暗的 It is always gusty here on our prarie farm. A) 有风的 B) 多雨的 C) 干燥的 D) 炎热的 Many great classical composers completed their symphonies with grand finales. A) 诙谐曲 B) 序曲 C) 小夜曲 D) 终曲 It isn’t fair to […]

ESLint

官网 Find and fix problems in your JavaScript code Find Problems ESLint statically analyzes your code to quickly find problems. ESLint is built into most text editors and you can run ESLint as part of your continuous integration pipeline. Fix Automatically Many problems ESLint finds can be automatically fixed. ESLint fixes are syntax-aware so you […]

小程序开发初步印象(一)

需要先到微信公众平台 进行注册并选择小程序开发。 进入发布流程完善信息: 补充小程序基本信息: 下载微信开发者工具 安装后用微信账户登录开发者工具,使用官方模板创建小程序项目 由于使用微信云开发,项目创建后,微信会收到资源开通成功通知,这里自动开通了云开发免费版资源,不需要收费。 上传小程序代码: 上传后,到微信公众平台小程序主页,点击左侧版本管理项,打开版本管理页面,将此次上传设置为体验版本: 使用微信扫描弹出窗口的二维码即可打开小程序。 一些问题: 一个用户只能开发一个小程序吗? 设置小程序名称和头像后,右上角用户名称和头像就变成了小程序名称和小程序的头像

507. Perfect Number

题目 A perfect number is a positive integer that is equal to the sum of its positive divisors, excluding the number itself. A divisor of an integer x is an integer that can divide x evenly. Given an integer n, return true if n is a perfect number, otherwise return false. Example 1: Input: num […]

846. Hand of Straights

题目 Alice has some number of cards and she wants to rearrange the cards into groups so that each group is of size groupSize, and consists of groupSize consecutive cards. Given an integer array hand where hand[i] is the value written on the ith card and an integer groupSize, return true if she can rearrange […]

Java备忘

Java 11 与 Java 8 的区别 日期 Java 11 多了 LocalDate.EPOCH 常量的定义, Java 8没有这个变量 Java中标签的使用 An unlabeled break statement terminates the innermost switch, for, while, or do-while statement, but a labeled break terminates an outer statement.  Java中标签主要是用来中断或者跳转到指定循环(非中断/跳转语句直接所在的循环),以下是随手写的示例代码,仅为展示标签使用: 如果随机生成的l值是10的倍数,则中断do-while循环;如果l值对10取模余数是2,则跳转到第二个for循环。 Maven 3.3.1+ requires JDK 1.7+. Maven 3.3.1+ requires JDK 1.7+. Please set appropriate JDK at Settings | Build, Execution, Deployment | Build Tools | Maven | […]

简单Java Applet示例

下午看到一个涉及到Java Applet的问题,发现自己已经都不知道多少年没接触Applet了,稍微看一下,运行了个简单示例。 JDK8 – Java Applets A Java applet is a special kind of Java program that a browser enabled with Java technology can download from the internet and run. An applet is typically embedded inside a web page and runs in the context of a browser. An applet must be a subclass of the java.applet.Applet class. […]

VOCABULARY – TEST 3

题目 The fitful breeze didn’t make for good sailing. A) 方向不定的 B) 威力强大的 C) 微弱无力的 D) 断断续续的 The lake shimmered in the tropical heat. A) 上涨 B) 发热 C) 干涸 D) 闪闪发光 Spoiled from birth, the touchy monarch wasn’t liked by the masses. A) 易怒的 B) 残暴的 C) 风流的 D) 挥霍的 The candle began to […]

VOCABULARY – TEST 2

题目 The regal splendor of the palace impressed all who were allowed inside. A) 高耸的 B) 艳丽的 C) 堂皇的 D) 清幽的 He polished the metal until it had a fine luster. A) 光泽 B) 图案 C) 刮痕 D) 形状 She had an innate ability to predict people’s actions. A) 快速的 B) 精准的 C) 特殊的 D) […]

VOCABULARY – TEST 1

题目 Judge Hooper is regarded in the legal community as a man of candor. A) 乐天 B) 严肃 C) 精明 D) 公正 After moving to the countryside, Mr. Jones developed an ardor for bird watching. A) 热心 B) 习惯 C) 休闲 D) 厌倦 The farmers had an ample supply of grain to last them through […]