Editing Pythonic
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 35: | Line 35: | ||
<!-- {{SyntaxHighlight| --> | <!-- {{SyntaxHighlight| --> | ||
{{Code|Conversion of Python's dict to structure|<syntaxhighlight lang="octave" style="font-size:13px"> | {{Code|Conversion of Python's dict to structure|<syntaxhighlight lang="octave" style="font-size:13px"> | ||
x = pyeval ("{1:'one',2:'two'}"); | |||
x.("1") | |||
ans = one | ans = one | ||
x.("2") | |||
ans = two | ans = two | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||