Python初学教程:del 操作符使用示例,python操作符,python del 操
Python初学教程:del 操作符使用示例,python操作符,python del 操
python del 操作符使用示例
#!/usr/bin/python# 导入sys模块import sys# del使用try: fred = [ 4, 5, 11, 43 ] print 'fred =', fred # del 删除索引2处的元素 del fred[2] print 'fred =', fred # 删除fred变量,删除之后,就不能再使用fred了 del fred print 'fred =', fred print "Doesn't get here!"except NameError, x: print "*** Name", x, "undefined ***"fred = 'Nimrod'print 'fred =', fred
相关内容
- Python多进程 在进程间共享数据,python进程,由于GIL的原
- Python 多进程中使用共享内存在进程之间共享数据,py
- Python多进程multiprocessing使用示例,,由于要做把一个多线
- 在Python 多进程中使用signal,pythonsignal,下面的代码我只
- Python初学教程:元组 使用示例,python示例,python 元组
- python使用qrcode包生成二维码,pythonqrcode,python使用qrco
- Python初学教程:Python dict使用示例,pythondict,Python Dict
- Python初学教程:读取文件,,Python 读取文件#
- Python 操作 Sqlite3教程,pythonsqlite3,Python编程语言从出
- Python生成RSS,pythonrss,心血来潮要搞下pytho
评论关闭