Υποστηριζόμενα πακέτα#

Βασικές εντολές#

Όλες οι ενσωματωμένες εντολές, συναρτήσεις, σταθερές, τύποι και εξαιρέσεις που περιλαμβάνονται στην Python 3.8 μπορούν να χρησιμοποιηθούν στο VEXcode VR.

Αναφορές:

Υποστηρίζονται επίσης βασικά στοιχεία όπως λειτουργίες συμβολοσειρών, κανονικές εκφράσεις και αναδίπλωση κειμένου.

Αναφορές:

Available Packages#

The following packages are fully supported and can be imported into VEXcode VR so they can be used in coding projects. To do so, use the keyword import followed by the name of the package you want to import at the beginning of your coding project.

Υποστηριζόμενα πακέτα:

Preferred Installer Program (PIP) and micropip#

It is not possible to use PIP to install packages to VEXcode VR due to it being based entirely within the web browser. You can use micropip to import packages written purely in Python, but the packages will not work if they attempt to access hardware or use other unsupported features.

Λόγω του αριθμού των διαθέσιμων πακέτων, δεν μπορούμε να παρέχουμε μια λίστα με τα πακέτα που θα λειτουργήσουν στο VEXcode VR.

import micropip

def main():
   # Tell micropip to install the "snowballstemmer" package.
   await micropip.install('snowballstemmer')
   # Now that "snowballstemmer" is installed, we can import the
   # package.
   import snowballstemmer
   # Use the package to find the stems of the words and print
   # them.
   stemmer = snowballstemmer.stemmer('english')
   brain.print(stemmer.stemWords('go goes going gone'.split()))

vr_thread(main)

Known Unsupported Features / Packages#

Ταυτόχρονη εκτέλεση#

The native Python options for concurrent execution are not supported in VEXcode VR. This is due to security features in the browser and other web technologies used with VEXcode to prevent malicious access to your computer. VEXcode instead uses the vr_thread command to create a simplified thread for running things concurrently.

Μη υποστηριζόμενες ομάδες πακέτων#

There are many Python packages that can be imported using the import keyword, but will not be supported in VEXcode VR.

Μη υποστηριζόμενες ομάδες πακέτων Python για VEXcode VR:

  • Επικοινωνία συστήματος αρχείων ή εξωτερικής εφαρμογής.

  • Δικτύωση ή επικοινωνία μεταξύ διεργασιών.

  • Πακέτα που απαιτούν γραφικά.

  • Πακέτα προβολής ή αναπαραγωγής πολυμέσων.

  • Πακέτα, εκτός από το micropip, για την εισαγωγή άλλων πακέτων.

  • Πακέτα ειδικά για λειτουργικό σύστημα ή αυτά που τροποποιούν τις ρυθμίσεις του λειτουργικού συστήματος.

  • Πακέτα χρόνου εκτέλεσης Python.

  • Πακέτα αφιερωμένα στη διαχείριση ή τη δημιουργία πακέτων και εργαλείων ανάπτυξης Python.