代码搜索:Python
找到约 10,000 项符合「Python」的源代码
代码结果 10,000
www.eeworm.com/read/435264/7794817
py print_tuple.py
#!/usr/bin/env python
# Filename: print_tuple.py
age=22
name='Swaroop'
print '%s is %d years old' %(name,age)
print 'Why is %s playing with that python?' %name
www.eeworm.com/read/435264/7794826
py func_global.py
#!/usr/bin/env python
# Filename: func_global.py
def func():
global x
print 'x is',x
x=2
print 'Changed local x to',x
x=50
func()
print 'Value of x is',x
www.eeworm.com/read/435264/7794841
py list_comprehension.py
#!/usr/bin/env python
# Filename: list_comprehension.py
listone=[2,3,4]
listtwo=[2*i for i in listone if i>2]
print listtwo
www.eeworm.com/read/435264/7794842
py func_local.py
#!/usr/bin/env python
# Filename: func_local.py
def func(x):
print 'x is',x
x=2
print 'Changed local x to',x
x=50
func(x)
print 'x is still',x
www.eeworm.com/read/299182/7880983
py timep.py
#! /usr/bin/python
#timeP.py
def time():
for i in range(0,100000):
x = 123498
y = 98082432
z = x * y
www.eeworm.com/read/299122/7887600
txt 使用说明.txt
╭════════════════╮
║ 无忧代码网说明 ║
╭════════┤ 网站:http://5udm.com ├═════════╮
║ ║ 邮箱: 5udm@163.com ║