python
1#!/usr/bin/env python 2# -*- coding: utf-8 -*- 3 4from turtle import * 5 6def tree(length): 7 if length > 5: 8 forward(length) 9 right(20) 10 tree(length-15) 11 left(40) 12 tree(length-15) 13 right(20) 14 backward(length) 15 16color(“green”) 17left(90) 18backward(150) 19tree(120) 20 21input(‘type to exit’) 22 23
//このようなエラーが出ます。どうすればいいのでしょうか?
python
1SyntaxError: invalid character in identifier 2en-Mac:~ en$ python draw_tree.py 3 File "draw_tree.py", line 16 4 color(“green”) 5 ^ 6
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/07/17 23:50