default.txt 663 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using Profile
  2. # type definition
  3. immutable Point{T<:FloatingPoint}
  4. index::Int
  5. x::T
  6. y::T
  7. end
  8. #=
  9. Multi
  10. Line
  11. Comment
  12. =#
  13. function method0(x, y::Int; version::VersionNumber=v"0.1.2")
  14. """
  15. Triple
  16. Quoted
  17. String
  18. """
  19. @assert π > e
  20. s = 1.2
  21. 変数 = "variable"
  22. if s * 100_000 ≥ 5.2e+10 && true || is(x, nothing)
  23. s = 1. + .5im
  24. elseif 1 ∈ [1, 2, 3]
  25. println("s is $s and 変数 is $変数")
  26. else
  27. x = [1 2 3; 4 5 6]
  28. @show x'
  29. end
  30. local var = rand(10)
  31. var[1:5]
  32. var[5:end-1]
  33. var[end]
  34. opt = "-la"
  35. run(`ls $opt`)
  36. '\u2200' != 'T'
  37. return 5s / 2
  38. end