From 1e0421c81386e1b5243e611765d70ac19e9681ac Mon Sep 17 00:00:00 2001 From: 6357b01e78a0a92e2999ac16 <6357b01e78a0a92e2999ac16@devide> Date: Thu, 24 Nov 2022 03:27:15 +0000 Subject: [PATCH] update --- np-test.py | 17 +++++++++++++++++ preview.yml | 2 +- requirements.txt | 1 + test.py | 0 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 np-test.py delete mode 100644 test.py diff --git a/np-test.py b/np-test.py new file mode 100644 index 0000000..19cc000 --- /dev/null +++ b/np-test.py @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- + +# __ author:Jack +# date: 2022-11-21 + +import numpy as np + +def show_test(): + x = np.array([[1,2,3],[4,5,6]]) + print(x) + print("=====") + y = np.expand_dims(x,axis=1) + print(y) + + +if __name__=='__main__': + show_test() \ No newline at end of file diff --git a/preview.yml b/preview.yml index b22f9a0..feb934f 100644 --- a/preview.yml +++ b/preview.yml @@ -1,7 +1,7 @@ autoOpen: true apps: - port: 9527 - command: pip --version + command: pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple & pip config set install.trusted-host https://pypi.tuna.tsinghua.edu.cn & pip install -r requirements.txt root: /ide/workspace/1024opensource name: py-test description: py-test diff --git a/requirements.txt b/requirements.txt index e635204..ddc4dc8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ Flask requests +numpy diff --git a/test.py b/test.py deleted file mode 100644 index e69de29..0000000 -- GitLab