[PYTHON] Pymacs helloworld

~/Documents/elisp/test/Pymacs/helloworld.py Speichern Sie die folgende Datei unter

~/Documents/elisp/test/Pymacs/helloworld.py


# -*- coding: utf-8 -*-
from Pymacs import lisp

def hello():
    lisp.insert("Hello from Python!")

def hello2(l):
    return l[0]+"pypy123"

def hello3(l):
    return [l[0]+"12pypy123",l[1]+"bbb"]

Gehen Sie auf elisp wie folgt vor

pymacs-test-load.el


(eval-after-load "pymacs" 
'(add-to-list 'pymacs-load-path "~/Documents/elisp/test/Pymacs/"))

(pymacs-load "helloworld")

scratch Und so weiter

pymacs-test-do.el


(helloworld-hello)

(helloworld-hello2 "aaa")
;;return "apypy123"

(helloworld-hello3 (list "aaa" "kkk"))
;;return  ("aaa12pypy123" "kkkbbb")

Recommended Posts

Pymacs helloworld
Hallo Welt
Cython Helloworld
web2py Hinweis: Hallo Welt
Hallo Welt mit ctypes
RabbitMQ Tutorial 1 ("Hallo Welt!")
Hallo, Welt mit Docker
Hallo Welt mit Django
Djangos erste Hallo Welt
Hallo Welt auf Flasche
Zeichne Hallo Welt mit mod_wsgi
Bis hallo Welt mit Zappa
Hallo Welt in GO-Sprache
Hallo Welt (Anfänger) mit Django
Python beginnend mit Hallo Welt!
Lass uns "Hello World" in 40 Sprachen machen! !!
Hallo Welt! Mit virtueller CAN-Kommunikation
Einführung in TensorFlow - Hallo World Edition
Hallo Welt! (Minimum Viable Block Chain)
[Hinweis] Hallo Weltausgabe mit Python
cout << "Hallo Welt! \ N" in Python
Hallo Welt mit Flasche [Passendes Memo]
Code: 2 "Hello World" im "Choregraphe-Python-Skript"
Hallo Welt! Von QPython mit Braincrash
Python #Hello World für Super-Anfänger
Einführung in Ansible Teil 1'Hallo Welt !! '
[Python] Webanwendung von 0! Hands-on (2) -Hallo Welt-
Hallo Welt- und Gesichtserkennung mit opencv-python 4.2
Hallo Welt mit Raspberry Pi + Minecraft Pi Edition
Wie man Hello, World mit #Nix baut
Hallo Welt nicht localhost in Django
(Für mich) Django_1 (Basic / Hello World / Template)
Flask Tutorial (von der Installation bis zur Hallo Welt)
So zeigen Sie Hello World in Python an
Hallo Welt! Von QPython mit Brainfu * k
Hallo Welt- und Gesichtserkennung mit OpenCV 4.3 + Python
Python 1-Personen-Lernsitzung: 1. "Python ausführen ~" Hallo Welt ""
Vom Aufbau der Kivy-Umgebung bis zur Anzeige von Hello World
Hallo Welt mit allen Funktionen der Go-Sprache
Begrüßen Sie die Welt mit Python mit IntelliJ
Hallo Welt mit Nginx + Uwsgi + Python auf EC2
Flask Hello World kann nicht in VPS angezeigt werden
Erstellen Sie mit Django eine Hallo-Welt-Anwendung mit nur einer Datei
Erste Python ① Umgebungskonstruktion mit Pythonbrew & Hello World !!
Erstellen Sie in Tornado einen HTTP-Server (Hello World)
Für mich als Django-Anfänger (3) - Hallo Welt! --- ---.