Erster Stand: compute.py
Kommentar in compute.py hinzugefügt Requirements: tabulate und ruff eingerichtet
This commit is contained in:
1 parent
635daf44b8
commit
c48231f193
3 files changed
+7
-16
No files matched your search
+3
-1
@@ -1,3 +1,5 @@
|
||||
[project]
|
||||
name = "matrixmania"
|
||||
version = "0.1.0"
|
||||
version = "0.1.0"
|
||||
#(schönere matritzen als tabellen, code überprüfen)
|
||||
dependencies = ["tabulate", "ruff"]
|
||||
+1
-1
@@ -196,4 +196,4 @@ if __name__ == "__main__":
|
||||
print("All tests passed.")
|
||||
|
||||
|
||||
# Zweiter Commit zum Testen der Versionskontrolle
|
||||
# Zweiter Commit zum Testen der Versionskontrolle
|
||||
@@ -1,16 +1,5 @@
|
||||
# This is a sample Python script.
|
||||
from tabulate import tabulate
|
||||
|
||||
# Press ⌃R to execute it or replace it with your code.
|
||||
# Press Double ⇧ to search everywhere for classes, files, tool windows, actions, and settings.
|
||||
matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
|
||||
|
||||
|
||||
def print_hi(name):
|
||||
# Use a breakpoint in the code line below to debug your script.
|
||||
print(f'Hi, {name}') # Press ⌘F8 to toggle the breakpoint.
|
||||
|
||||
|
||||
# Press the green button in the gutter to run the script.
|
||||
if __name__ == '__main__':
|
||||
print_hi('PyCharm')
|
||||
|
||||
# See PyCharm help at https://www.jetbrains.com/help/pycharm/
|
||||
print(tabulate(matrix, tablefmt="grid"))
|
||||
Reference in new issue
Block a user