Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 22, 2023. It is now read-only.
/pythonnetPublic archive
forked frompythonnet/pythonnet

Commit898e13e

Browse files
committed
Clean-up README.md example
1 parentae8e6f0 commit898e13e

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

‎README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,22 @@ static void Main(string[] args)
5656
using (Py.GIL())
5757
{
5858
dynamicnp=Py.Import("numpy");
59+
Console.WriteLine(np.cos(np.pi*2));
60+
5961
dynamicsin=np.sin;
60-
Console.WriteLine(np.cos(np.pi*2));
6162
Console.WriteLine(sin(5));
63+
6264
doublec=np.cos(5)+sin(5);
6365
Console.WriteLine(c);
6466
/* this block is temporarily disabled due to regression #249
6567
dynamic a = np.array(new List<float> { 1, 2, 3 });
66-
dynamic b = np.array(new List<float> { 6, 5, 4 }, Py.kw("dtype", np.int32));
6768
Console.WriteLine(a.dtype);
69+
70+
dynamic b = np.array(new List<float> { 6, 5, 4 }, Py.kw("dtype", np.int32));
6871
Console.WriteLine(b.dtype);
69-
Console.WriteLine(a * b);*/
72+
73+
Console.WriteLine(a * b);
74+
*/
7075
Console.ReadKey();
7176
}
7277
}
@@ -80,7 +85,7 @@ Output:
8085
-0.6752620892
8186
float64
8287
int32
83-
[6.10.12.]
88+
[6.10.12.]
8489
```
8590

8691
[appveyor shield]:https://img.shields.io/appveyor/ci/pythonnet/pythonnet/master.svg?label=AppVeyor

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp