loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.6836633146653122","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"aW1wb3J0IG51bXB5IGFzIG5wCgp4ID0gbnAuYXJyYXkoWzEsIDJdKSAgICMgTGV0IG51bXB5IGNob29zZSB0aGUgZGF0YXR5cGUKcHJpbnQoeC5kdHlwZSkgICAgICAgICAjIFByaW50cyAiaW50NjQiCgp4ID0gbnAuYXJyYXkoWzEuMCwgMi4wXSkgICAjIExldCBudW1weSBjaG9vc2UgdGhlIGRhdGF0eXBlCnByaW50KHguZHR5cGUpICAgICAgICAgICAgICMgUHJpbnRzICJmbG9hdDY0IgoKeCA9IG5wLmFycmF5KFsxLCAyXSwgZHR5cGU9bnAuaW50NjQpICAgIyBGb3JjZSBhIHBhcnRpY3VsYXIgZGF0YXR5cGUKcHJpbnQoeC5kdHlwZSkgICAgICAgICAgICAgICAgICAgICAgICAgIyBQcmludHMgImludDY0Ig=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
import numpy as np

x = np.array([1, 2])   # Let numpy choose the datatype
print(x.dtype)         # Prints "int64"

x = np.array([1.0, 2.0])   # Let numpy choose the datatype
print(x.dtype)             # Prints "float64"

x = np.array([1, 2], dtype=np.int64)   # Force a particular datatype
print(x.dtype)                         # Prints "int64"