You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.9 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 作业1
## Python
### 1字符串
给定一个文章,找出每个单词的出现次数
```
One is always on a strange road, watching strange scenery and listening to strange music. Then one day, you will find that the things you try hard to forget are already gone.
```
### 2组合
有 1、2、3、4 个数字,能组成多少个互不相同且无重复数字的三位数?都是多少?
### 3 判断
企业发放的奖金根据利润提成。利润(I)
* 低于或等于 10 万元时,奖金可提 10%
* 高于 10 万元,低于 20 万元时,低于 10 万元的部分按 10%提成,高于 10 万元的部分,可提成 7.5%
* 20 万到 40 万之间时,高于 20 万元的部分,可提成 5%
* 40 万到 60 万之间时,高于 40 万元的部分,可提成 3%
* 60 万到 100 万之间时,高于 60 万元的部分,可提成 1.5%
* 高于 100 万元时, 超过 100 万元的部分按 1%提成,
从键盘输入当月利润 I求应发放奖金总数
### 4循环
输出9x9的乘法口诀表
### 5使用while循环实现输出2-3+4-5+6.....+100的和
### 6算法
给一个数字列表,将其按照由大到小的顺序排列
例如
```
1, 10, 4, 2, 9, 2, 34, 5, 9, 8, 5, 0
```
### 7应用1
做为 Apple Store App 独立开发者,你要搞限时促销,为你的应用生成激活码(或者优惠券),使用 Python 如何生成 200 个激活码(或者优惠券)?
需要考虑什么是激活码?有什么特性?例如`KR603guyVvR`是一个激活码
### 8应用2
需要把某个目录下面所有的某种类型的文件找到。
例如把`c:`下面所有的`.dll`文件找到
### 9应用3
你有个目录里面是程序假如是C或者是Python统计一下你写过多少行代码。包括空行和注释但是要分别列出来。