add python transformation examples (#2500)
* add python transformation examples * change tab orderpull/2508/merge
parent
6674708f33
commit
8784b1aaf4
|
@ -110,6 +110,16 @@ Note the overall syntax is the same.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
|
::: tab Python
|
||||||
|
|
||||||
|
The script file name is `stringlength.py` and the transformation is `PY(stringlength.py)`.
|
||||||
|
|
||||||
|
```python
|
||||||
|
"String has " + str(len(input)) + " characters"
|
||||||
|
```
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
::: tab JRuby
|
::: tab JRuby
|
||||||
|
|
||||||
The script file name is `stringlength.rb` and the transformation is `RB(stringlength.rb)`.
|
The script file name is `stringlength.rb` and the transformation is `RB(stringlength.rb)`.
|
||||||
|
@ -161,6 +171,14 @@ JS(|"String has " + input.length + " characters")
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
|
::: tab Python
|
||||||
|
|
||||||
|
```python
|
||||||
|
PY(|"String has " + str(len(input)) + "characters")
|
||||||
|
```
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
::: tab JRuby
|
::: tab JRuby
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
|
|
Loading…
Reference in New Issue