# Assign list "time" with the following time values.
time = [15, 27, 32, 36.5, 38.5, 40.5, 41.5, 42, 43.5, 45.5, 47.5, 52.5]
# Remove 1st value(0) from the list
time[0] = []
# Show time
time
[[], 27, 32, 36.5, 38.5, 40.5, 41.5, 42, 43.5, 45.5, 47.5, 52.5]
# Print time
print(time)
[[], 27, 32, 36.5, 38.5, 40.5, 41.5, 42, 43.5, 45.5, 47.5, 52.5]
Run Code Online (Sandbox Code Playgroud)
我只是按照教程到目前为止教给我的内容:http:
//docs.python.org/py3k/tutorial/introduction.html#lists
| 归档时间: |
|
| 查看次数: |
5698 次 |
| 最近记录: |