forked from selfteaching/the-craft-of-selfteaching
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
> - `random.randrange(1,1000)`表示随机产生一个1-1000的整数(含左侧1,但不含右侧1000)。 | ||
> - `for in range(10)` 将0-9依次遍历到i | ||
案例1:打印出100以内的所有质数。 | ||
|
||
` | ||
for i in range (2,100): | ||
|
||
|
||
` |