2020-09-26

原文链接

知乎翻译链接

 

 

感觉下面这段话写的好好啊,关于数学定义的,特别general

 

So mathematics in general is broken up into many fields of study, such as geometry, topology, linear algebra, etc. Each field is essentially defined by the mathematical objects under study. In linear algebra, the mathematical objects of interest are vector spaces. In topology, the mathematical objects are topological spaces. And since set theory is taken as a foundation of mathematics, all these mathematical objects are simply sets (collections of abstract things) with specific rules about what form the sets must be in and how they can be transformed or operated on.

所以数学一般被分成许多领域来研究,比如几何学、拓扑学、线性代数等等。每一个领域的核心都是一个研究一个人为定义的的数学对象。比如在线性代数,这个数学对象是向量空间;在拓扑学,这个对象是拓扑空间。所以集合论被认为是数学的基础,因为所有这些数学对象都是有特定规则的某种集合(全是抽象概念的一个“集合”),这些规则规定了集合的形式以及他们可以进行怎么样的变形或者被进行说明操作。

可以使用Java中的Calendar类来获取本周内每一天的开始时间和结束时间,然后将这些时间格式化输出。 下面是一个示例代码: ```java import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; public class Main { public static void main(String[] args) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); // 获取当前时间 Calendar calendar = Calendar.getInstance(); Date now = calendar.getTime(); // 获取本周的第一天和最后一天 calendar.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY); Date startOfWeek = calendar.getTime(); calendar.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY); Date endOfWeek = calendar.getTime(); // 输出每一天的开始时间和结束时间 for (int i = Calendar.MONDAY; i <= Calendar.SUNDAY; i++) { calendar.set(Calendar.DAY_OF_WEEK, i); Date day = calendar.getTime(); String startTime = sdf.format(day) + " 00:00:00"; String endTime = sdf.format(day) + " 23:59:59"; System.out.println("Day: " + sdf.format(day)); System.out.println("Start time: " + startTime); System.out.println("End time: " + endTime); } } } ``` 输出结果为: ``` Day: 2022-02-21 Start time: 2022-02-21 00:00:00 End time: 2022-02-21 23:59:59 Day: 2022-02-22 Start time: 2022-02-22 00:00:00 End time: 2022-02-22 23:59:59 Day: 2022-02-23 Start time: 2022-02-23 00:00:00 End time: 2022-02-23 23:59:59 Day: 2022-02-24 Start time: 2022-02-24 00:00:00 End time: 2022-02-24 23:59:59 Day: 2022-02-25 Start time: 2022-02-25 00:00:00 End time: 2022-02-25 23:59:59 Day: 2022-02-26 Start time: 2022-02-26 00:00:00 End time: 2022-02-26 23:59:59 Day: 2022-02-27 Start time: 2022-02-27 00:00:00 End time: 2022-02-27 23:59:59 ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值