给大家分享一个网站。对函数调用时数据变化的可视化处理网站
http://www.pythontutor.com/visualize.html
http://www.pythontutor.com/visualize.html
2016-10-19
做完上一道题我很郁闷,做完这道题,我更加怀疑人生了,特别是他给我的那句话“这你都能通过,无法直视你的双眸。”是我无法直视你的双眸吧!!!!
2016-10-19
最新回答 / 慕斯5482594
设置Python的环境变量(1)右击此电脑-->属性-->点高级系统设置-->高级,里面有个环境变量 -->系统变量这里path里面填写你python安装的路径 ,并以 ; 符号结尾。<...图片...>设置完后应该cmd里能运行了,不行重启电脑。(2)Notepad++ 安装 ,下一步到结果安装,就行了。(默认,自定义安装路径,不影响使用)
2016-10-19
L = ['Adam', 'Lisa', 'Paul', 'Bart']
L.pop(-1)
L.pop(-1)
print L
L.pop(-1)
L.pop(-1)
print L
2016-10-19
def generate_tr(name, score):
if score < 60 :
return '<tr><td>%s</td><td style="color:red">%s</td></tr>' % (name, score)
else :
return '<tr><td>%s</td><td>%s</td></tr>' % (name, score)
tds = [d.generate_tr(name, score) for name, score in d.iteritems()]
if score < 60 :
return '<tr><td>%s</td><td style="color:red">%s</td></tr>' % (name, score)
else :
return '<tr><td>%s</td><td>%s</td></tr>' % (name, score)
tds = [d.generate_tr(name, score) for name, score in d.iteritems()]
2016-10-18
s = set(['Adam', 'Lisa', 'Paul'])
L = ['Adam', 'Lisa', 'Bart', 'Paul']
name = set(L) - set(S)
print(name)
L = ['Adam', 'Lisa', 'Bart', 'Paul']
name = set(L) - set(S)
print(name)
2016-10-18
for x in [ '1','2','3','4','5','6','7','8' ]:
for y in [ '2','3','4','5','6','7','8','9' ]:
if y > x:
print x + y
完美通过。
for y in [ '2','3','4','5','6','7','8','9' ]:
if y > x:
print x + y
完美通过。
2016-10-18
无语,用# -*- coding: utf-8 -*-这个可以,单独print u'''静夜思'''提交却不行不行。。。
2016-10-18
print [m*100+n*10+k for m in range(1,10) for n in range(0,10) for k in range(1,10) if m==k]
2016-10-18