100-072

创建一个链表。
 1 #! /usr/bin/env python
 2 # -*- coding:utf-8 -*-
 3 '''
 4 创建一个链表。
 5 '''
 6 if __name__ == '__main__':
 7     ptr = []
 8     for i in range(5):
 9         num = int(input('please input a number:\n'))
10         ptr.append(num)
11     print (ptr)

 

posted @ 2018-06-05 19:54  睡到自然醒的猪  阅读(54)  评论(0)    收藏  举报

iaoexl at outlook dot com, 返回顶部 →友情链接: 信息港 同城信息