NCF参数化建筑论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 10367|回复: 0
打印 上一主题 下一主题

[在线求助] py小练习小问题2

[复制链接]
跳转到指定楼层
1m
发表于 2012-10-11 13:56:36 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 carcass 于 2012-10-11 14:48 编辑

1.py程序运行,能不能运行结束,上方出现times,纪录运行时间?
import rhinoscriptsyntax as rs
import math
a=rs.GetObject('get a closed curve')
b=rs.GetObject('pick a point')
c=rs.PointInPlanarClosedCurve(b,a)
if c=0:
    print('point is on the curve')
elif c=1:
     print('point is in the curve')
else c=2
     print('point is out the curve')    pointsinplanarclosedcurve返回值是0,1,2,c=0报错

File "C:\Documents and Settings\xieyoujun\Desktop\aa.py", line 7
    if c=0:

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享

小黑屋|手机版|NCF参数化建筑论坛 ( 浙ICP备2020044100号-2 )    辽公网安备21021102000973号

GMT+8, 2024-5-5 21:10 , Processed in 0.254669 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表