英语学习笔记2019-11-01

本文探讨了英语学习的方法,强调了查找资料确认不确定性的必要性。同时,深入讲解了概率论的基本概念,如必然事件、可能事件和不可能事件,以及事件发生的因果关系。此外,还介绍了Python中测量字符串、列表、元组和字典长度的方法,以及不同数字系统之间的转换。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

英语学习笔记2019-11-01

If we are not certain about the result/consequence, we should try to look up/search the related materials to make sure.

Question: 1GB | 1 TB = **** The Dream of Red Mansions?

人民文学出版社1982年8月北京第一版 共1075000字;甲戌脂本《石头记》总字数731017个字; 戚本《石头记》约61万字;

cause and effect 因果关系

  • result in
  • result from

Laziness resulted in your failure.

Your failure resulted from laziness.

  • sure – certain
  • unsure – uncertain

What's the world really like?

  • certainty  –  1    certain event 必然事件
  • possibility – (0, 1)  possible event 可能事件
  • impossibility – 0   impossible event 不可能事件

0 -- black

(0, 1) -- gray

1 -- white

(-∞, +∞) --> (0, 1)

infinity --> finity

This is a one-to-one mapping from the open interval (-∞, +∞) to the open interval (0, 1).

We are living in a world filled with probabilities.

We use the letter A to denote an event, then we can use P(A) to denote the probability of the event A.

That is to say, P(A) belongs to the closed interval [0, 1].

Open Source Platform: GitHub

measure – measurement – tools

two dimensions: quantity and quality

  1. Length – meter
  2. Mass -- kilogram
  3. Time -- second

In Python, we have an important function len() to measure the length of a string, list, tuple and dict.

1. measure the length of a string

How many letters are there in the string message?

How many times the letter 'o' occurs in the string?

Which function can be used to count the times?

It's so easy that we can use the count() function to complete the task.

If I don't know the function count() of a string, what shall I do to complete the abovementioned task?

Just now we completed the same task in different ways. -- All roads lead to Rome.

2. measure the length of a list

We can traverse the list aList in two different ways.

3. measure the length of a tuple

We can traverse the tuple aTuple in two different ways.

4. measure the length of a dict

There's only one way to traverse the dict aDict.

Number Systems

  1. Binary
  2. Octal
  3. Decimal
  4. Hexadecimal
  5. Sexagesimal

Let me demonstrate the conversion between different number systems in Python.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

酒城译痴无心剑

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值