Skip to content
View in the app

A better way to browse. Learn more.

主视角中国

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

随机的用法

(0 评审)

随机的用法:

一个条件要想有不同的结局可用

随机的程序,那就是如下用法:

这里只是结果,条件方面略

switch ((randomint 3)+1) //随机有3个结果就是说1,2,3中任取(随机函数)

{

case 3: //结果取到的是3,那么执行DO3

thread do3

break

case 2: //结果取到的是2,那么执行DO2

thread do2

break

case 1: //结果取到的是1,那么执行DO1

thread do1

break

}

end

do1: //DO1内容

........

end

do2: //DO2内容

.......

end

do3: //DO3内容

.....

end

0 评论

Recommended Comments

没有要显示的评论。

访客
This blog entry is now closed to further comments.

Account

Navigation

搜索

搜索

设置浏览器推送通知

Chrome(安卓)
  1. 点击地址栏旁边的锁形图标。
  2. 点击 权限 → 通知
  3. 根据需要调整通知设置。
Chrome(桌面)
  1. 点击地址栏中的锁形图标。
  2. 选择 网站设置
  3. 找到 通知,然后根据需要调整设置。