提交 6ac9ba8a 编写于 作者: R root

Tue Sep 30 16:29:00 CST 2025 inscode

上级 71642c69
# --- 通用忽略规则 ---
*.class
*.log
*.pyc
*.swp
*.DS_Store
Thumbs.db
._*
# --- 编译输出目录 ---
# C/C++
*.o
*.out
*.so
*.a
*.dll
*.exe
build/
obj/
Bin/
# Java
target/
*.jar
*.war
*.ear
*.nar
# Python
__pycache__/
*.pyc
*.pyo
*.pyd
pycache/
# JavaScript/Node.js
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
dist/
build/
# Go
bin/
pkg/
*.exe
*.test
# Rust
/target/
**/*.rs.bk
# .NET
bin/
obj/
*.suo
*.user
*.cache
# PHP
vendor/
composer.lock
# Ruby
/.bundle/
/vendor/bundle
*.gem
# Swift
.build/
*.xcworkspace
!default.xcworkspace
# Android
gen/
bin/
*.apk
*.ap_
# iOS
build/
*.ipa
*.xcuserstate
# Haskell
*.hi
*.o
dist/
dist-newstyle/
.cabal-sandbox/
cabal.sandbox.config
# Scala
target/
*.class
# Kotlin
*.class
/build/
# TypeScript
dist/
*.js.map
*.tsbuildinfo
# --- IDE 相关 ---
# Visual Studio Code
.vscode/
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
# IntelliJ
.idea/
*.iml
*.iws
# Eclipse
.settings/
.classpath
.project
# --- 操作系统生成文件 ---
# Windows
[Dd]esktop.ini
$RECYCLE.BIN/
# Linux/Unix
*~
.fuse_hidden*
# macOS
.DS_Store?
._*
.Spotlight-V100
.Trashes
\ No newline at end of file
import torch
import numpy as np
np_array = np.array([1, 2, 3])
tensor = torch.from_numpy(np_array)
print(tensor)
\ No newline at end of file
[project]
name = "hello-world"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"matplotlib>=3.10.6",
"numpy>=2.2.6",
"torch==2.1.0",
]
[[tool.uv.index]]
url = "https://mirrors.aliyun.com/pypi/simple/"
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册