FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonHomeWork/ex4plus.py at master · zhoujingyang/pythonHomeWork · GitHub
zhoujingyang
/
pythonHomeWork
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonHomeWork
/
ex4plus.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
25 lines (15 loc) · 399 Bytes
Breadcrumbs
pythonHomeWork
/
ex4plus.py
Copy path
File metadata and controls
25 lines (15 loc) · 399 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#_*_coding=utf-8_*_
#File "ex4.py", line 8, in <module>
#average_passengers_per_car = car_pool_capacity / passenger
#NameError: name 'car_pool_capacity' is not defined
#第8行的变量car_pool_capacity没有定义
# 1.在这个程序里不会有什么问题,但是如果小数点后边有具体数字时如果不用浮点数的话就会自动舍弃
# 2、浮点数就是小数点后有有效位
# 3、
i
=
1
x
=
2
j
=
3
print
i
+
x
print
x
-
i
print
j
*
x
print
x
/
i
Back
|
FazBrowse Home
|
New Git URL