在Scilab 6中打印控制台的答案

时间:2017-02-28 19:38:43

标签: console output scilab

较早版本的Scilab(5.5.2)会打印出控制台的答案:

func mapView(_ mapView: GMSMapView, didTapInfoWindowOf marker: GMSMarker) {

    let placeName = marker.title!

    switch placeName {
    case "George's":
        if let georgesUrl = URL(string: "http://www.georges-ny.com") {
            self.webView.load(URLRequest(url: georgesUrl))
        }
    case "TGI Friday's":
        if let fridaysUrl = URL(string: "https://www.tgifridays.com") {
            self.webView.load(URLRequest(url: fridaysUrl))
        }
    case "Reserve Cut":
        if let rcUrl = URL(string: "http://reservecut.com") {
            self.webView.load(URLRequest(url: rcUrl))
        }
    case "Bill's Bar & Burger":
        if let billsUrl = URL(string: "http://www.billsbarandburger.com") {
            self.webView.load(URLRequest(url: billsUrl))
        }
    case "O'Hara's":
        if let oharasUrl = URL(string: "http://www.oharaspubnyc.com") {
            self.webView.load(URLRequest(url: oharasUrl))
        }
    default:
        // user-selected place
        if let site = self.selectedPlace?.website {
            self.webView.load(URLRequest(url: site))
        }
    }

    webView.allowsBackForwardNavigationGestures = false
    self.view = webView


     // return to map
    var backButton = UIImage(named: "back")
    backButton = backButton?.withRenderingMode(UIImageRenderingMode.alwaysOriginal)
    self.navigationItem.leftBarButtonItem = UIBarButtonItem(image: backButton, style: UIBarButtonItemStyle.plain, target: self, action: #selector(handleReturn))
    navigationItem.title = "Restaurant Webpage"
}

Scilab 6.0.0没有:

--> 170957486 / 649294786
 ans  =

    0.2632972  
-->

有没有办法将我的偏好更改为5.5.2功能?我不想将--> 170957486 / 649294786 --> 用于简单的桌面计算器需求。

2 个答案:

答案 0 :(得分:2)

使用SCILAB,您可以使用mode命令控制控制台的行为。

因此,请尝试输入命令mode(0)

要更好地了解mode命令的帮助。

答案 1 :(得分:0)

它现在突然起作用了。我想系统重启有帮助,我没有改变其他任何东西。