### Kotlin Hello World Program Source: https://www.itbaima.cn/zh-CN/document/urw2e6gg1lprv65w A simple 'Hello, World!' program written in Kotlin. This serves as a basic example to test the development environment setup. ```kotlin fun main() { println("Hello, World!") } ``` -------------------------------- ### Verify Kotlin Installation Source: https://www.itbaima.cn/zh-CN/document/urw2e6gg1lprv65w Confirms that the Kotlin compiler is installed and shows its version. This command is run in the command prompt or terminal after setting up the Kotlin environment. ```sh kotlinc -version ``` -------------------------------- ### Kotlin 变量进行算术运算 Source: https://www.itbaima.cn/zh-CN/document/urw2e6gg1lprv65w 演示了变量可以参与算术运算,并将结果重新赋值给变量。 ```kotlin fun main() { var a = 9 //a初始值为9 a = a + 1 //a = a + 1也就是将a+1的结果赋值给a,跟数学是一样的,很好理解对吧 println(a) //最后得到的结果就是10了 } ``` -------------------------------- ### Kotlin 变量值赋给另一个变量 Source: https://www.itbaima.cn/zh-CN/document/urw2e6gg1lprv65w 展示了如何将一个变量的值赋给另一个变量。 ```kotlin fun main() { var a = 10 var b = a //直接让b等于a,那么a的值就会给到b println(b) //这里输出的就是10了 } ``` -------------------------------- ### Verify Java Installation Source: https://www.itbaima.cn/zh-CN/document/urw2e6gg1lprv65w Checks if the Java Development Kit (JDK) is installed and displays its version. This command is executed in the command prompt or terminal. ```sh java -version ``` -------------------------------- ### Kotlin 修改变量值 Source: https://www.itbaima.cn/zh-CN/document/urw2e6gg1lprv65w 演示了变量的值可以在程序执行过程中被修改。 ```kotlin fun main() { var a = 666 a = 777 println(a) //这里打印得到的就是777 } ``` -------------------------------- ### Kotlin 变量类型推断 Source: https://www.itbaima.cn/zh-CN/document/urw2e6gg1lprv65w 展示了 Kotlin 编译器如何根据初始值自动推断变量的类型,从而可以省略显式类型声明。 ```kotlin fun main() { var a = 10 } ``` -------------------------------- ### Kotlin 打印变量值 Source: https://www.itbaima.cn/zh-CN/document/urw2e6gg1lprv65w 展示了如何使用 `println` 函数将变量的值输出到控制台。 ```kotlin fun main() { var a = 10 println(a) } ``` -------------------------------- ### Kotlin 变量延迟赋值 Source: https://www.itbaima.cn/zh-CN/document/urw2e6gg1lprv65w 演示了先声明变量,稍后再为其赋值的用法。 ```kotlin fun main() { var a : Int a = 10 } ``` -------------------------------- ### Basic HTML5 Page Structure Source: https://www.itbaima.cn/zh-CN/document/bsisgazdftiz3o9c A minimal HTML5 document structure that includes essential meta tags, a title, and a body containing a 'Hello World' message. This serves as a starting point for creating web pages and can be rendered in any web browser. ```html
` tag to define paragraphs. Each `
` tag represents a distinct paragraph, and browsers automatically add spacing between them for better readability. ```html
自2024年11月20日06:00起:停止原神小米服务器的游戏充值和新用户注册功能
自2025年01月20日12:00起:正式关停原神在小米平台的运营,关闭游戏在小米平台的下载入口及关闭游戏服务器
``` -------------------------------- ### HTML Subscript and Superscript Tag Example Source: https://www.itbaima.cn/zh-CN/document/bsisgazdftiz3o9c Shows how to use `` for superscript text (e.g., exponents) and `` for subscript text (e.g., chemical formulas). These tags are useful for special notations. ```html 广州一女子,入职仅58天却21次迟到,且工作能力与简历不符,被公司辞退。 女子不满公司补偿,申请劳动仲裁。结果劳动仲裁开庭当天,她迟到了16分钟。 仲裁结果支持了公司,驳回了她的申请。 ``` -------------------------------- ### HTML Head Section Example Source: https://www.itbaima.cn/zh-CN/document/bsisgazdftiz3o9c Shows common tags found within the `` section, specifically `` for character encoding and `