用Perl编写iOS应用 PerlMotion

码农软件 · 软件分类 · 编译器 · 2019-12-08 20:42:38

软件介绍

PerlMotion 是一个 iOS 和 OS X 下的 Perl 开发的工具链,支持 Perl 5 . 也就是说你可以用 Perl 语言来编写 iOS 和 OS X 下的应用程序。

示例代码:

package Hello::AppDelegate;
use base 'UIApplicationDelegate';
use UIAlertView;
use UIWindow;
use UIScreen;
use Hello::ViewController;

# this method is entrypoint of your application
sub application {
    my ($app) = @_;
    my $alert = UIAlertView->new->init_with_title('Hello', {
        message => 'Hello PerlMotion!!'
    });
    $alert->add_button_with_title("Button");
    my $title = $alert->button_title_at_index(0);
    $alert->dismiss_with_clicked_button_index(0, { animated => 1 });
    $alert->show();
    my $window = UIWindow->new()->init_with_frame(UIScreen->main_screen->bounds);
    $window->root_view_controller(Hello::ViewController->new);
    $window->root_view_controller->wants_full_screen_layout(1);
    $window->make_key_and_visible;
    $app->window($window);
}

本文地址:https://codercto.com/soft/d/20727.html

智能Web算法(第2版)

智能Web算法(第2版)

【英】Douglas G. McIlwraith(道格拉斯 G. 麦基尔雷思)、【美】Haralambos Marmanis(哈若拉玛 玛若曼尼斯)、【美】Dmitry Babenko(德米特里•巴邦科) / 达观数据、陈运文 等 / 电子工业出版社 / 2017-7 / 69.00

机器学习一直是人工智能研究领域的重要方向,而在大数据时代,来自Web 的数据采集、挖掘、应用技术又越来越受到瞩目,并创造着巨大的价值。本书是有关Web数据挖掘和机器学习技术的一本知名的著作,第2 版进一步加入了本领域最新的研究内容和应用案例,介绍了统计学、结构建模、推荐系统、数据分类、点击预测、深度学习、效果评估、数据采集等众多方面的内容。《智能Web算法(第2版)》内容翔实、案例生动,有很高的阅......一起来看看 《智能Web算法(第2版)》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具