add QCodeEditor
This commit is contained in:
parent
bccee9bd36
commit
2f3069a388
316 changed files with 98016 additions and 0 deletions
14
external/QCodeEditor/example/resources/code_samples/python.py
vendored
Normal file
14
external/QCodeEditor/example/resources/code_samples/python.py
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import numpy
|
||||
|
||||
def sqr_array(x):
|
||||
'''
|
||||
Documentation for sqr_array.
|
||||
A multi line string!'
|
||||
'''
|
||||
|
||||
return np.array(x)**2
|
||||
|
||||
s = 'this is a string'
|
||||
d = 10
|
||||
x = np.arange(0,d,d/10)
|
||||
y = sqr_array(x)
|
||||
Loading…
Add table
Add a link
Reference in a new issue