JoeJoeJoe's repos on GitHub
C++ · 1 人关注
flo
A mobile framework like Odoo
HTML · 1 人关注
HelloWorldImJoe.github.io
个人博客
0 人关注
ai-edu
AI education materials for Chinese students, teachers and IT professionals.
Python · 0 人关注
AutoKPI
自动绩效填表
0 人关注
auto_backup
Automated database backups from Odoo, both locally and on an FTP server
0 人关注
bepuphysics1int
Pure C# deterministic fixed-point 3D real time physics simulation library
0 人关注
BookStack
A platform to create documentation/wiki content built with PHP & Laravel
Python · 0 人关注
bundleExchange
转换ios中asset为bundle
0 人关注
CheckCodeSmell
iOS检查代码异味
Ruby · 0 人关注
cocoapods-packager
CocoaPods plugin which allows you to generate a static library from a podspec.
0 人关注
cocos-awesome-tech-solutions
Cocos' Awesome Technical Solutions
0 人关注
CodeSnippets
我的代码片段
0 人关注
course-tencent-cloud
专注于网课系统,网校系统,在线教育系统,知识付费系统。名符其实的开源,可免费商用。docker容器化部署,极速搭建专属课程点播,课程直播学习平台。
Python · 0 人关注
CreateNewFile
在当前文件夹创建新的文件
0 人关注
DuplicateCodeCheck
云端检查重复代码
C · 0 人关注
fabu.love
应用发布平台类似fir.im/蒲公英,支持检查更新,灰度发布等等.Demo地址:https://fabu.apppills.com/
0 人关注
flutter
Flutter makes it easy and fast to build beautiful apps for mobile and beyond.
0 人关注
flutter-permission-handler
Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions.
0 人关注
flutter_dating_template
flutter 版本的交友 app 模板,总计页面35个,测试数据基于 mockjs 创建(A dating app template for The Flutter version, with a total of 35 pages, was created based on MockJS.)
C++ · 0 人关注
flutter_example
Dart · 0 人关注
flutter_odoo_restful_api
Flutter odoo restful api
Dart · 0 人关注
flutter_smart_select
SmartSelect allows you to easily convert your usual form select or dropdown into dynamic page, popup dialog, or sliding bottom sheet with various choices input such as radio, checkbox, switch, chips, or even custom input. Supports single and multiple choice.
0 人关注
fl_chart
A powerful Flutter chart library, currently supporting Line Chart, Bar Chart, Pie Chart, Scatter Chart and Radar Chart.
0 人关注
GameFramework
This is literally a game framework, based on Unity game engine. It encapsulates commonly used game modules during development, and, to a large degree, standardises the process, enhances the development speed and ensures the product quality.
0 人关注
gameframework_demo
基于Unity3D框架Game Framework( http://gameframework.cn )的教程和实例,对应教程:http://www.benmutou.com/archives/category/unity3d/game-framework
0 人关注
gitignore
A collection of useful .gitignore templates
0 人关注
gou
App engine framework
0 人关注
HelloWorldImW
0 人关注
hexo
静态博客发布工具
0 人关注
ImageHosting
图床
JoeJoeJoe

JoeJoeJoe

穷则独善其身, 达则兼济天下.
V2EX 第 531733 号会员,加入于 2021-02-02 21:51:17 +08:00
今日活跃度排名 246
根据 JoeJoeJoe 的设置,主题列表只有在你登录之后才可查看
二手交易 相关的信息,包括已关闭的交易,不会被隐藏
JoeJoeJoe 最近回复了
5 小时 7 分钟前
回复了 lostexile 创建的主题 问与答 咨询一个算法的问题,我是一点思路都没有了。
@JoeJoeJoe #20 小数有点不太对 你可以再自己改改, 整数处理的感觉没啥大问题, 代码我也没细看😂
5 小时 9 分钟前
回复了 lostexile 创建的主题 问与答 咨询一个算法的问题,我是一点思路都没有了。
5 小时 10 分钟前
回复了 lostexile 创建的主题 问与答 咨询一个算法的问题,我是一点思路都没有了。
直接用 ai 生成了一个 python 的:

#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Author: Joe
# Description: 生成 10000 以内的小学计算题

import random

def generate_operation():
"""生成一个四则运算表达式,保证结果为整数"""
operators = ['+', '-', '*', '÷'] # 将 '/' 替换为 '÷'
# 计算长度 1 到 5 次
count = random.randint(1, 5)
# 减少小数出现的次数,约 30% 的概率为小数
numbers = []
for _ in range(count + 1):
if random.random() < 0.3:
num = round(random.uniform(1, 10000), 2) # 最多保留两位小数
else:
num = random.randint(1, 10000)
numbers.append(num)

ops = [random.choice(operators) for _ in range(count)]

expression = str(numbers[0])
for i in range(count):
while ops[i] == '÷' and numbers[i + 1] == 0: # 修改为 '÷'
if random.random() < 0.3:
numbers[i + 1] = round(random.uniform(1, 10000), 2)
else:
numbers[i + 1] = random.randint(1, 10000)
# 确保除法运算结果为整数
if ops[i] == '÷': # 修改为 '÷'
# 计算商并确保至少为 1
quotient = max(1, int(numbers[i] // numbers[i + 1]))
# 调整被除数使其为除数的整数倍
numbers[i] = numbers[i + 1] * random.randint(1, quotient)
expression += f" {ops[i]} {numbers[i + 1]}"

result = eval(expression.replace('÷', '/')) # 计算时将 '÷' 替换回 '/'
# 确保结果为整数
while isinstance(result, float) and not result.is_integer():
numbers = []
for _ in range(count + 1):
if random.random() < 0.3:
num = round(random.uniform(1, 10000), 2)
else:
num = random.randint(1, 10000)
numbers.append(num)
ops = [random.choice(operators) for _ in range(count)]
expression = str(numbers[0])
for i in range(count):
while ops[i] == '÷' and numbers[i + 1] == 0: # 修改为 '÷'
if random.random() < 0.3:
numbers[i + 1] = round(random.uniform(1, 10000), 2)
else:
numbers[i + 1] = random.randint(1, 10000)
if ops[i] == '÷': # 修改为 '÷'
quotient = max(1, int(numbers[i] // numbers[i + 1]))
numbers[i] = numbers[i + 1] * random.randint(1, quotient)
expression += f" {ops[i]} {numbers[i + 1]}"
result = eval(expression.replace('÷', '/')) # 计算时将 '÷' 替换回 '/'

return expression, int(result)

# 生成题目和结果
expression, result = generate_operation()
# 打印题目
print(f"题目: {expression}")
# 打印结果
print(f"结果: {result}")
9 小时 17 分钟前
回复了 manami 创建的主题 程序员 微信小游戏如何防止被破解
单机游戏不需要防, 防了也没啥用
2 天前
回复了 qee 创建的主题 Kindle kindle 如何发挥余热
zlibrary 下载电子书 数据线导入 继续看电子书😂 本来就是个看书的设备, 做别的也不太合适
#56 换位思考 我也会删 毕竟大厂都有法务跟舆情监控部门等着吃点 kpi
联系客服 客服后台查码发过去 前一阵短信运营商集体报错的时候 我们就这么搞的
@chapiom 我昨天刚看到 不过硅基的赠金模型属实是慢啊
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2186 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 15:49 · PVG 23:49 · LAX 08:49 · JFK 11:49
Developed with CodeLauncher
♥ Do have faith in what you're doing.