Giter Site home page Giter Site logo

shadowqcom / mojo_cn Goto Github PK

View Code? Open in Web Editor NEW
37.0 0.0 10.0 22.96 MB

Mojo编程语言的学习资料、开源社区、中文网站。

Home Page: https://mojocn.org

License: Other

CSS 13.79% JavaScript 32.49% MDX 39.93% Shell 13.79%
mojo ai machine-learning mojoo

mojo_cn's Introduction

欢迎来到 Mojo_CN

Mojo 是一种新的编程语言,我们是国内第一批 Mojo 开发 者。
本项目由Mojo中文网发起,旨在学习Mojo语言和翻译Mojo文档,致力于让更多开发者参与交流。

开发者交流群

⚡欢迎各位开发者加群 摸鱼 交流。

Wechat & Telegram

QQ

777214484
925241368

Star History

Star History Chart

感谢贡献者

License

Mojo_CN by 影象限,shadowq, MojoCN, Mojoo is licensed under CC BY-NC-ND 4.0

mojo_cn's People

Contributors

1138886114 avatar andeya avatar jasonw372 avatar leilei1891 avatar p-jiangh avatar shadowqcom avatar zbj-china avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mojo_cn's Issues

struct type run error, in the JupyterLab

CN-demo: self&

struct MyPair:
    var first: Int
    var second: Int

    # We use 'fn' instead of 'def' here - we'll explain that soon
    fn __init__(self&, first: Int, second: Int):
        self.first = first
        self.second = second

    fn __lt__(self, rhs: MyPair) -> Bool:
        return self.first < rhs.first or
              (self.first == rhs.first and
               self.second < rhs.second)

mojo-demo: inout self

struct MyPair:
    var first: Int
    var second: Int

    # We use 'fn' instead of 'def' here - we'll explain that soon
    fn __init__(inout self, first: Int, second: Int):
        self.first = first
        self.second = second

    fn __lt__(self, rhs: MyPair) -> Bool:
        return self.first < rhs.first or
              (self.first == rhs.first and
               self.second < rhs.second)


JupyterLab run demo:
image

Feedback for “安装Mojo 获取Mojo SDK”

kong-lingran@kong-lingran-None:~$ curl -s https://mojocn.org/get.sh | sh -
[sudo] kong-lingran 的密码:
Executing the setup script for the 'modular/installer' repository ...

OK: Checking for required executable 'curl' ...
OK: Checking for required executable 'apt-get' ...
OK: Detecting your OS distribution and release using system methods ...
^^^^: ... Detected/provided for your OS/distribution, version and architecture:

:
: ... distro=ubuntu version=23.10 codename=mantic arch=x86_64
:
OK: Checking for apt dependency 'apt-transport-https' ...
OK: Checking for apt dependency 'ca-certificates' ...
OK: Checking for apt dependency 'gnupg' ...
OK: Checking for apt signed-by key support ...
OK: Importing 'modular/installer' repository GPG keys ...
OK: Checking if upstream install config is OK ...
OK: Installing 'modular/installer' repository via apt ...
NOPE: Updating apt repository metadata cache ...
Failed to update via apt-get update
命中:1 http://mirrors.aliyun.com/ubuntu mantic InRelease
命中:2 https://mirrors.aliyun.com/docker-ce/linux/ubuntu mantic InRelease
命中:3 http://mirrors.aliyun.com/ubuntu mantic-updates InRelease
命中:4 http://mirrors.aliyun.com/ubuntu mantic-backports InRelease
命中:5 http://security.ubuntu.com/ubuntu mantic-security InRelease
获取:6 https://dl.modular.com/public/installer/deb/ubuntu mantic InRelease [3,674 B]
命中:7 https://packages.microsoft.com/ubuntu/23.10/prod mantic InRelease
获取:8 http://repo.mysql.com/apt/debian jessie InRelease [28.8 kB]
获取:9 https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease [3,632 B]
错误:8 http://repo.mysql.com/apt/debian jessie InRelease
下列签名无效: EXPKEYSIG 8C718D3B5072E1F5 MySQL Release Engineering [email protected]
错误:9 https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease
由于没有公钥,无法验证下列签名: NO_PUBKEY EB3E94ADBE1229CF
正在读取软件包列表...
W: http://repo.mysql.com/apt/debian/dists/jessie/InRelease: 密钥存储在过时的 trusted.gpg 密钥环中(/etc/apt/trusted.gpg),请参见 apt-key(8) 的 DEPRECATION 一节以了解详情。
W: GPG 错误:http://repo.mysql.com/apt/debian jessie InRelease: 下列签名无效: EXPKEYSIG 8C718D3B5072E1F5 MySQL Release Engineering [email protected]
E: 仓库 “http://repo.mysql.com/apt/debian jessie InRelease” 没有数字签名。
W: GPG 错误:https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY EB3E94ADBE1229CF
E: 仓库 “https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease” 没有数字签名。
^^^^: ... Failed to update via apt-get update - Context above (maybe no packages?).
!!!!: Oh no, your setup failed! :-( ... But we might be able to help. :-)
!!!!:
!!!!: You can contact Modular for further assistance.
!!!!:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.