IDL keywords 检查

pro test_keyword, a, key1 =key1
  if keyword_set(key1) then $
    print, a+key1 $
  else $
    print, a
end
 
IDL> test_keyword, 4, key1=6
      10
IDL> test_keyword, 4
       4
 
 
 
posted @ 2020-09-07 14:02  lqqgis  阅读(154)  评论(0编辑  收藏  举报