作者n196t (无)
看板Python
标题[问题] 巴斯卡三角形
时间Sat Jan 30 00:14:56 2010
我想请教巴斯卡三角形如何写!
我在网路上搜寻到
http://caterpillar.onlyfun.net/Gossip/AlgorithmGossip/PascalTriangle.htm
但是里面的程式码我输入後有错误
我用的版本是2.54
恳请高手解惑!!!谢谢~~
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.113.178.133
1F:→ aquarianboy:from __future__ import print_function 01/30 01:23
2F:→ aquarianboy:print在3.x版已经是function而不是statement了 01/30 01:24
3F:→ n196t:谢谢楼上大大 但我还是不懂>< 01/30 17:56
4F:→ aquarianboy:把from __future__ .... 放进.py应该就行了 01/30 18:10