CoppeliaSim <<
Previous Next >> Foosball
Lua
https://mde.tw/downloads/lua (靜態網際 Lua 解譯環境)
https://stud.cycu.org:8800/downloads/lua/index.html (動態網際 Lua 解譯環境)
https://mde.tw/pjcopsim/content/luaCrashCourse.html
Lua 輸入 char 取得其對應 ASCII number:
-- 利用 string.byte() 列出字元對應 ASCII 十進位數字碼
--[[
多行註解
--]]
print(string.byte("a"))
print(string.byte("w"))
print(string.byte("s"))
print(string.byte("d"))
for 迴圈:
for i = 1, 10 do
print(i)
end
for i = 1, 10, 2 do
print(i)
end
CoppeliaSim <<
Previous Next >> Foosball