代码搜索:using 有哪些应用?
找到约 10,000 项符合「using 有哪些应用?」的源代码
代码结果 10,000
www.eeworm.com/read/319707/13445762
py using_tuple.py
# Filename: using_tuple.py
zoo = ('wolf', 'elephant', 'penguin')
print 'Number of animals in the zoo is',len(zoo)
new_zoo = ('monkey', 'dolphin', zoo)
print 'Number of animals in the new zoo i
www.eeworm.com/read/319707/13445764
py using_name.py
# Filename : using_name.py
if __name__ == '__main__':
print 'This program is being run by itself'
else:
print 'I am being imported from another module'
www.eeworm.com/read/319707/13445779
pyc using_sys.pyc
www.eeworm.com/read/319707/13445783
pyc using_name.pyc
www.eeworm.com/read/319707/13445789
py using_file.py
# -*- coding: cp936 -*-
# Filename: using_file.py
poem = '''\
Programming is fun
When the work is done
if you wanna make your work also fun:
use Python!
'''
f = file('poem.txt', 'w
www.eeworm.com/read/319707/13445798
py using_list.py
# Filename: using_list.py
# This is my shopping list
shoplist = ['apple', 'mango', 'carrot', 'banana']
print 'I hava', len(shoplist), 'items to purchase.'
print 'These items are:', # Notice
www.eeworm.com/read/319707/13445799
py using_dict.py
# Filename: using_dict.py
# 'ab' is short for 'a'ddress'b'ook
ab = { 'Swaroop' : 'swaroopch@byteofpython.info',
'Larry' : 'larry@wall.org',
'Matsumoto' : 'matz@ruby-lang
www.eeworm.com/read/319707/13445804
py using_sys.py
# Filename : using_sys.py
import sys
print 'The command line arguments are:'
for i in sys.argv:
print i
print '\n\nThe pythonpath is', sys.path, '\n'