
Lv.1
g
签名:我的爱好是敲代码 讨厌的事是捉虫(Debug) 我最大的愿望永远永远不脱发
在 【新一代编辑器上线预告】手机电脑都能用的Kitten N要来啦! 中回复
泰不酷辣!好空白!
体验版链接:https://kn.codemao.cn/


2023-06-18T14:17:15 点赞:0
在 【CoCo 最强攻略】一个神奇的应用制作工具! 中回复
onst types = { isInvisibleWidget: true, type: "BASE_WIDGET", icon: "https://waddle.coco-central.cn/static/img/logo/logo-white.svg", title: "Base编解码", version: "1.0.0", isGlobalWidget: true, properties: [], methods: [], events: [], }; class Widget extends InvisibleWidget { constructor(props) { super(props); } } // 放置一个方法积木,返回值字符串 types['methods'].push({ key: 'Base', label: 'Base解编码', params: [ // 放置一个输入参数,用于用户输入 { key: 'text', label: '解/编码内容', valueType: 'string', defaultValue: '书写内容', }, // 放置一个下拉参数,检查模式 { key: 'mode', label: '模式', valueType: 'string', dropdown: [ { label: '编码', value: '编码', }, { label: '解码', value: '解码', }, ], }, ], valueType: 'string', }) Widget.prototype.Base = function (text,mode,) { // 检查模式,取参数(mode)的值 if (mode == '编码') { // 用户选择了“编码”模式 // 取参数(text)的值进行编码并返回 // 使用BASE编码并返回 return (btoa(encodeURI(text))); } if (mode == '解码') { // 用户选择了“解码”模式 // 取参数(text)的值进行编码并返回 // 使用BASE解码并返回 return (decodeURI(atob(text))); }
2023-08-05T14:42:21 点赞:1
在 【Python作品分享】超级老六 中回复
改进版:
while True:
print('糟了糟了,你的小坤坤不见了')
print('1到wc')
print('2到小日子')
n = input('要到哪')
if (n == 1):
print('阿短在上wc')
print('1打扰他')
print('2一起上wc')
wc = input('要干啥')
if (wc == 1):
print('你被他杀了')
else:
print('你拉不出来,你被气死了')
elif (n == 2):
print('你看见了一颗核弹')
print('1点燃')
print('2不管')
wc = input('要干啥')
if (wc == 1):
print('你炸了小日子,中国奖励了你一个小坤坤')
print('你尽情地拉喵,尿尿')
else:
print('你找不到,你被憋尿憋死了')
else:
print("滚")
print("One more round!")
print(" ")
print(" ")
2023-09-24T21:19:59 点赞:0